mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #6155] [WIP][Bugfix] Eager loaded associations and orderBy mappings #9871
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/6155
State: closed
Merged: No
This PR aims to solve #4256
I'm starting with the regression test. I've been digging and I believe this has mostly to do with the fact that the orderBy clause is read when
UnitOfWorkcalls theEntityPersister::loadOneToManyCollection, while eager loading is done atEntityPersisterlevel through the join analysis ingetSelectColumnsSQL().I could hack into the
getSelectColumnsSQL()method and leave some sort oforderedJoinedQuerymark somewhere, but it will be hacky.I'm opening this here to ask for opinions on how this could be tackled. I'm available to get it done, just point my fingers in the right direction!
Cheers