### Eclipse Workspace Patch 1.0 #P LeezyServer Index: libraries/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php =================================================================== --- libraries/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php (revision 7427) +++ libraries/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php (working copy) @@ -363,10 +363,7 @@ $this->_resultPointers[$dqlAlias] = $reflFieldValue[$index]; } } else if ( ! $reflField->getValue($parentObject)) { - $coll = new PersistentCollection($this->_em, $this->_ce[$entityName], new ArrayCollection); - $coll->setOwner($parentObject, $relation); - $reflField->setValue($parentObject, $coll); - $this->_uow->setOriginalEntityProperty($oid, $relationField, $coll); + $reflFieldValue = $this->_initRelatedCollection($parentObject, $parentClass, $relationField); } } else { // PATH B: Single-valued association