[2.0] Formatting.
This commit is contained in:
parent
e2d678cc10
commit
ae9a4be658
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user