Commit c318f006 authored by romanb's avatar romanb

[2.0] Fixed #2478.

parent 49a24c4e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment