1
0
mirror of synced 2024-12-05 03:06:05 +03:00

LimitSubqueryOutputWalker: fix aliasing of property in OrderBy from MappedSuperclass

This commit is contained in:
Filip Procházka 2015-04-09 01:43:05 +02:00
parent 192da14842
commit e501137d1a

View File

@ -438,7 +438,9 @@ 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']);
$sqlTableAliasForFieldAlias = $this->getSQLTableAlias($otherClassMetadata->getTableName(), $dqlAliasForFieldAlias); if (!$otherClassMetadata->isMappedSuperclass) {
$sqlTableAliasForFieldAlias = $this->getSQLTableAlias($otherClassMetadata->getTableName(), $dqlAliasForFieldAlias);
}
} }
// Compose search/replace patterns // Compose search/replace patterns