[2.0] Fixed #2478.
This commit is contained in:
parent
49a24c4ef8
commit
c318f006f9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue