Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes a problem where using duplicate aliases in the joinable associations chain would end up confusing the ResultSet groupResult method. The problem cause was that EagerLoader assumed that collision would occur in certain order. Instead of relying on the order, a collisions map is generated and then traversed so that fetching strategies can be corrected. A downside of this is that it relies on keeping references to arrays. A future enhancement to this fix would be to convert the arrays to objects so that the reference handling happen implicitly.
- Loading branch information
Showing
2 changed files
with
37 additions
and
15 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
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