New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use getMultiple()
to fetch associations as well in L2 cache fetch operations
#6245
Conversation
btw I know this is a bit messy, so please suggest a nice way to improve this (I'm a bit sleepy right now) |
@@ -178,14 +176,20 @@ public function get(QueryCacheKey $key, ResultSetMapping $rsm, array $hints = [] | |||
continue; | |||
} | |||
|
|||
$collection = new PersistentCollection($this->em, $assocMetadata, new ArrayCollection()); | |||
$generateKeys = function ($id) use ($assocMetadata): EntityCacheKey { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHP7 only feature!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
master
already dropped PHP 5.6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@guilhermeblanco we dropped PHP 5 support in master
as well
Hello, This PR will be merged to the 2.6 version that's right? The PR is still in improvement? |
@LuffyLyon this is only for 2.6 indeed and @Ocramius wanted to have some tests but we bumped into mocking hell. We still need to decide what to do with it (there're some duplications that I'm not really happy with) |
Ok thank you, which duplications are you talking about? Maybe I can contribute to improving this feature |
f79860d
to
ccaa4b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
getMultiple()
to fetch associations as wellgetMultiple()
to fetch associations as well in L2 cache fetch operations
Just as it was done on #5831