Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: revert adding PersistManager::findBy()#996

Merged
nikophil merged 1 commit into
zenstruck:2.xfrom
nikophil:fix/bug-with-ulid
Oct 5, 2025
Merged

fix: revert adding PersistManager::findBy()#996
nikophil merged 1 commit into
zenstruck:2.xfrom
nikophil:fix/bug-with-ulid

Conversation

@nikophil
Copy link
Copy Markdown
Member

@nikophil nikophil commented Oct 2, 2025

fixes #990 by actually reverting #983 - 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 😊

@nikophil nikophil merged commit 45214f7 into zenstruck:2.x Oct 5, 2025
144 of 145 checks passed
@nikophil nikophil deleted the fix/bug-with-ulid branch October 5, 2025 09:41
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