Backport of "fix aliasing of property in OrderBy from MappedSuperclass"
Backport of "LimitSubqueryOutputWalker: fix aliasing of property in OrderBy from MappedSuperclass" (e501137d1a
) See my comment ona3ece3b419
This commit is contained in:
parent
a3ece3b419
commit
ed637e51b9
@ -438,7 +438,10 @@ class LimitSubqueryOutputWalker extends SqlWalker
|
|||||||
// Field was declared in a parent class, so we need to get the proper SQL table alias
|
// Field was declared in a parent class, so we need to get the proper SQL table alias
|
||||||
// for the joined parent table.
|
// for the joined parent table.
|
||||||
$otherClassMetadata = $this->em->getClassMetadata($fieldMapping['declared']);
|
$otherClassMetadata = $this->em->getClassMetadata($fieldMapping['declared']);
|
||||||
|
if (!$otherClassMetadata->isMappedSuperclass) {
|
||||||
$sqlTableAliasForFieldAlias = $this->getSQLTableAlias($otherClassMetadata->getTableName(), $dqlAliasForFieldAlias);
|
$sqlTableAliasForFieldAlias = $this->getSQLTableAlias($otherClassMetadata->getTableName(), $dqlAliasForFieldAlias);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compose search/replace patterns
|
// Compose search/replace patterns
|
||||||
|
Loading…
x
Reference in New Issue
Block a user