Commit 37b11a8
committed
Allow setQueryBuilder() callable to return a custom QueryBuilder
The return value of the callable passed to setQueryBuilder() was ignored
in AssociationConfigurator, making it impossible to replace the
QueryBuilder with one that includes eager loading (leftJoin + addSelect).
This caused N+1 queries when using group_by or choice_label that access
related entities on each choice.
Fixes EasyCorp#74341 parent 3aaf2ba commit 37b11a8
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
0 commit comments