1
0
mirror of synced 2025-02-20 06:03:15 +03:00

[2.0] Fixed #2478.

This commit is contained in:
romanb 2009-09-06 13:46:56 +00:00
parent 49a24c4ef8
commit c318f006f9

View File

@ -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);