From f70ee3a03893cc80eb9f5ef6c1f65316da23db27 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 23 Jan 2011 16:24:08 +0100 Subject: [PATCH] DDC-997 - Fix bug in hydration that came up with DDC-117 --- lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php b/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php index ad8c0840c..302cc6b54 100644 --- a/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php +++ b/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php @@ -194,6 +194,7 @@ abstract class AbstractHydrator $cache[$key]['isMetaColumn'] = true; $cache[$key]['fieldName'] = $fieldName; $cache[$key]['dqlAlias'] = $this->_rsm->columnOwnerMap[$key]; + $classMetadata = $this->_em->getClassMetadata($this->_rsm->aliasMap[$cache[$key]['dqlAlias']]); $cache[$key]['isIdentifier'] = $classMetadata->isIdentifier($fieldName); } }