Merge branch 'master' of github.com:doctrine/doctrine2
This commit is contained in:
commit
15562d030e
@ -369,10 +369,7 @@ class ObjectHydrator extends AbstractHydrator
|
|||||||
$this->_resultPointers[$dqlAlias] = $reflFieldValue[$index];
|
$this->_resultPointers[$dqlAlias] = $reflFieldValue[$index];
|
||||||
}
|
}
|
||||||
} else if ( ! $reflField->getValue($parentObject)) {
|
} else if ( ! $reflField->getValue($parentObject)) {
|
||||||
$coll = new PersistentCollection($this->_em, $this->_ce[$entityName], new ArrayCollection);
|
$reflFieldValue = $this->_initRelatedCollection($parentObject, $parentClass, $relationField);
|
||||||
$coll->setOwner($parentObject, $relation);
|
|
||||||
$reflField->setValue($parentObject, $coll);
|
|
||||||
$this->_uow->setOriginalEntityProperty($oid, $relationField, $coll);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// PATH B: Single-valued association
|
// PATH B: Single-valued association
|
||||||
|
Loading…
Reference in New Issue
Block a user