Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: api-platform/core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4d68d98c9fa0b1c719541d4086736a6b761e3ca6
Choose a base ref
..
head repository: api-platform/core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b40c191c065d6ca0d467706415f5bea0de6bc113
Choose a head ref
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Bridge/Doctrine/Orm/Util/QueryChecker.php
4 changes: 4 additions & 0 deletions src/Bridge/Doctrine/Orm/Util/QueryChecker.php
Original file line number Diff line number Diff line change
@@ -162,6 +162,10 @@ public static function hasOrderByOnToManyJoin(QueryBuilder $queryBuilder, Manage
->getManagerForClass($rootEntity)
->getClassMetadata($rootEntity);

if (!($rootMetadata instanceof ClassMetadata)) {
continue;
}

foreach ($rootMetadata->getAssociationsByTargetClass($relationship) as $association => $mapping) {
if ($parentMetadata->isCollectionValuedAssociation($association)) {
return true;