1
0
mirror of synced 2025-01-19 15:01:40 +03:00

Merge branch 'hotfix/#1265-sti-persister-one-to-one-association-notices-fix' into hotfix/#1265-sti-persister-one-to-one-association-notices

This commit is contained in:
Marco Pivetta 2015-01-18 18:27:01 +01:00
commit 544add9e8b

View File

@ -90,14 +90,14 @@ class SingleTablePersister extends AbstractEntityInheritancePersister
foreach ($assoc['targetToSourceKeyColumns'] as $srcColumn) { foreach ($assoc['targetToSourceKeyColumns'] as $srcColumn) {
$className = isset($assoc['inherited']) ? $assoc['inherited'] : $this->class->name; $className = isset($assoc['inherited']) ? $assoc['inherited'] : $this->class->name;
$targetClass = $this->em->getClassMetadata($mapping['targetEntity']); $targetClass = $this->em->getClassMetadata($assoc['targetEntity']);
$columnList[] = $this->getSelectJoinColumnSQL( $columnList[] = $this->getSelectJoinColumnSQL(
$tableAlias, $tableAlias,
$srcColumn, $srcColumn,
$className, $className,
PersisterHelper::getTypeOfColumn( PersisterHelper::getTypeOfColumn(
$mapping['sourceToTargetKeyColumns'][$srcColumn], $assoc['sourceToTargetKeyColumns'][$srcColumn],
$targetClass, $targetClass,
$this->em $this->em
) )