From c318f006f9b9575dfcd3451e7c66fcc0ad901c95 Mon Sep 17 00:00:00 2001 From: romanb Date: Sun, 6 Sep 2009 13:46:56 +0000 Subject: [PATCH] [2.0] Fixed #2478. --- lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php b/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php index df805d2ec..7607bfbf9 100644 --- a/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php +++ b/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php @@ -141,7 +141,7 @@ class ObjectHydrator extends AbstractHydrator $pColl = new PersistentCollection( $this->_em, $this->_ce[$relation->targetEntityName], - $class->reflFields[$name]->getValue($entity) ?: new ArrayCollection + new ArrayCollection ); $pColl->setOwner($entity, $relation);