[2.0] Formatting.
This commit is contained in:
parent
e2d678cc10
commit
ae9a4be658
1 changed files with 4 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue