1
0
mirror of synced 2025-03-24 08:53:52 +03:00

Fix error undefined index "targetEntity"

This commit is contained in:
Anderson Müller 2015-01-18 15:54:43 +01:00
parent 61e07e5907
commit d48093886d

View File

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