1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +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( $pColl = new PersistentCollection(
$this->_em, $this->_em,
$this->_ce[$relation->targetEntityName], $this->_ce[$relation->targetEntityName],
$class->reflFields[$name]->getValue($entity) ?: new ArrayCollection new ArrayCollection
); );
$pColl->setOwner($entity, $relation); $pColl->setOwner($entity, $relation);