1
0
mirror of synced 2025-02-20 22:23:14 +03:00

[2.0] Formatting.

This commit is contained in:
romanb 2009-10-22 12:53:25 +00:00
parent e2d678cc10
commit ae9a4be658

View File

@ -1722,9 +1722,10 @@ class UnitOfWork implements PropertyChangedListener
} else {
// Inject collection
$reflField = $class->reflFields[$field];
$pColl = new PersistentCollection($this->_em,
$this->_em->getClassMetadata($assoc->targetEntityName),
$reflField->getValue($entity) ?: new ArrayCollection
$pColl = new PersistentCollection(
$this->_em,
$this->_em->getClassMetadata($assoc->targetEntityName),
$reflField->getValue($entity) ?: new ArrayCollection
);
$pColl->setOwner($entity, $assoc);
$reflField->setValue($entity, $pColl);