-
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
Ignore orderBy in UOW eagerLoadCollections() method #11381
Comments
tomasz-ryba
pushed a commit
to tomasz-ryba/orm
that referenced
this issue
Apr 23, 2024
Fetch EAGER mode ignores orderBy as of changes introduced with doctrine#8391 Fixes duplicated doctrine#11381
tomasz-ryba
pushed a commit
to tomasz-ryba/orm
that referenced
this issue
Apr 23, 2024
Fetch EAGER mode ignores orderBy as of changes introduced with doctrine#8391 Fixes duplicated doctrine#11381
tomasz-ryba
pushed a commit
to tomasz-ryba/orm
that referenced
this issue
Apr 24, 2024
Fetch EAGER mode ignores orderBy as of changes introduced with doctrine#8391 Fixes duplicated doctrine#11381
tomasz-ryba
pushed a commit
to tomasz-ryba/orm
that referenced
this issue
Apr 24, 2024
Fetch EAGER mode ignores orderBy as of changes introduced with doctrine#8391 Fixes duplicated doctrine#11381
greg0ire
pushed a commit
to tomasz-ryba/orm
that referenced
this issue
Apr 24, 2024
EAGER fetch mode ignores orderBy as of changes introduced with doctrine#8391 Fixes doctrine#11163 Fixes doctrine#11381
Fixed by #11422 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Summary
When using a collection eager loading (UnitOfWork::eagerLoadCollections method), #[OrderBy] attribute on collection is ignoring now. In line
$found = $this->getEntityPersister($targetEntity)->loadAll([$mappedBy => $entities])
it must be
$found = $this->getEntityPersister($targetEntity)->loadAll([$mappedBy => $entities], $mapping['orderBy']);
The text was updated successfully, but these errors were encountered: