#1178 - using the PersisterHelper
to extract type of associated meta-result columns
This commit is contained in:
parent
e5c4e65764
commit
096bd90aed
@ -1316,10 +1316,7 @@ class BasicEntityPersister implements EntityPersister
|
|||||||
$resultColumnName = $this->getSQLColumnAlias($joinColumn['name']);
|
$resultColumnName = $this->getSQLColumnAlias($joinColumn['name']);
|
||||||
$columnList[] = $this->getSQLTableAlias($class->name, ($alias == 'r' ? '' : $alias) )
|
$columnList[] = $this->getSQLTableAlias($class->name, ($alias == 'r' ? '' : $alias) )
|
||||||
. '.' . $quotedColumn . ' AS ' . $resultColumnName;
|
. '.' . $quotedColumn . ' AS ' . $resultColumnName;
|
||||||
|
$type = PersisterHelper::getTypeOfColumn($joinColumn['referencedColumnName'], $targetClass, $this->em);
|
||||||
if (isset($targetClass->fieldNames[$joinColumn['referencedColumnName']])) {
|
|
||||||
$type = $targetClass->fieldMappings[$targetClass->fieldNames[$joinColumn['referencedColumnName']]]['type'];
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->rsm->addMetaResult($alias, $resultColumnName, $quotedColumn, $isIdentifier, $type);
|
$this->rsm->addMetaResult($alias, $resultColumnName, $quotedColumn, $isIdentifier, $type);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user