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:
commit
544add9e8b
@ -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
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user