From d48093886dfd77e5856c99c253c0e63b5d5dc50e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anderson=20M=C3=BCller?= Date: Sun, 18 Jan 2015 15:54:43 +0100 Subject: [PATCH] Fix error undefined index "targetEntity" --- lib/Doctrine/ORM/Persisters/Entity/SingleTablePersister.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Persisters/Entity/SingleTablePersister.php b/lib/Doctrine/ORM/Persisters/Entity/SingleTablePersister.php index 574cb371e..23ebdf2d2 100644 --- a/lib/Doctrine/ORM/Persisters/Entity/SingleTablePersister.php +++ b/lib/Doctrine/ORM/Persisters/Entity/SingleTablePersister.php @@ -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 )