Skip to content

Conversation

nikophil
Copy link
Member

@nikophil nikophil commented Oct 2, 2025

fixes #990 by actually reverting https://github.com/zenstruck/foundry/pull/983/files - this solution implied too much problems (see #992 and #994), and I don't know how to fix #990 without too much complexity.

I fixed the problem it initially tried to resolve by forcing the refresh of the entities returned by the repository decorator which are already tracked. This increases the number of SQL requests, but it simplifies a lot the code (and we actually do not perform more sql queries than we used to with proxies)

The good side of this is that few more tests cases were added to the testsuite 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Error with entities with ULID ids after update from 2.7.0 to 2.7.2 Factory::all() loads outdated entities
1 participant