mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/6640
State: closed
Merged: Yes
Fixes #6217
Fixes #6284
This is a proper version of #6284, fixing the deeper problem.
Basically, what is happening is that you have a L2 cached entity class like following:
And a DQL query like following:
The L2 cache for
A.cwon't have any information to cache, but it will still contain the identifier forA.c. This means that for that association, aAssociationCacheEntryexists anyway, but no definition in theQueryCacheEntryon how to process it.I also tried fixing the problem on the other side (where the
QueryCacheEntryis produced, rather than consumed), but overfitting it when no association data is actually available causes emptyAssociationCacheEntryobjects to be hydrated into empty entities (really bad!).This is just a shotgun patch to fix the problem by iterating over all possible association fields, so if you have any better ideas, please do let me know.