-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[GH-1569] Optimize eager fetch for collections to batch query #8391
Changes from all commits
dc899e2
fdceb82
47952c3
b9e55ba
41410e6
ff28ba8
40bfe07
76fd34f
cd54c56
bf74b43
8ec599b
c09660a
8057b51
3f2fa30
6993ad2
d03aed1
609e10d
4b2b486
ec74c83
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1047,7 +1047,9 @@ public function walkJoinAssociationDeclaration($joinAssociationDeclaration, $joi | |
} | ||
} | ||
|
||
$targetTableJoin = null; | ||
if ($relation['fetch'] === ClassMetadata::FETCH_EAGER && $condExpr !== null) { | ||
throw QueryException::eagerFetchJoinWithNotAllowed($assoc['sourceEntity'], $assoc['fieldName']); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi, I probably have a poor implementation or use of eager mode on my relationships but this exception creates a BC break on my side. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indeed this is a BC in v2... How was it not been cached before merging? :( |
||
} | ||
|
||
// This condition is not checking ClassMetadata::MANY_TO_ONE, because by definition it cannot | ||
// be the owning side and previously we ensured that $assoc is always the owning side of the associations. | ||
|
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.
What is the reason for this change?