-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move relation join/orderBy stuff to EVENT_AFTER_PREPARE
Fixes a bug where the orderBy value ends up getting retained if a query is executed directly, and then re-executed with eager-loading. orderBy gets applied to the eager-loading params via getCriteria() and causes a SQL error because the relation table isn’t joined in.
- Loading branch information
1 parent
2e38cba
commit 158a815
Showing
1 changed file
with
29 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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