[2.0] Fixed #2478.
This commit is contained in:
parent
49a24c4ef8
commit
c318f006f9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user