Repository navigation
Merge 3.6.x into 3.7.x - #12596
Merged
Merged
Merge 3.6.x into 3.7.x#12596
Conversation
Loading an entity with an EAGER OneToMany from the second-level cache schedules deferred batch collection loading, but DefaultEntityHydrator never calls triggerEagerLoads(). If the collection is initialized first (for example from the collection cache) and a later hydration flushes deferred eager loads, eagerLoadCollections() adds the same items again. Skip deferred batching when HINT_CACHE_ENABLED is set so the collection is loaded immediately (and can hit the collection cache), and ignore already-initialized collections when flushing deferred eager loads. ----- Co-authored-by: Cursor <cursoragent@cursor.com>
…second-level-cache-double-hydrate Fix EAGER collection duplicates with L2 cache
Clarified conditions for using Collection methods with extra lazy associations that won't initialize the Collection.
Update documentation for extra lazy associations
PHP 8.6+ compatibility
* 2.20.x: Fix deprecated is_a() calls (PHP 8.6) (doctrine#12594)
* 3.6.x: Skip installation of deepclone on PHP 8.6 Fix deprecated is_a() calls (PHP 8.6) (doctrine#12594) Update documentation for extra lazy associations Fix EAGER collection duplicates with L2 cache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.