DDC-735 - Forward compatible fix for ArrayCollection::removeElement() returning the element instead of true
This commit is contained in:
parent
8ea1d3825f
commit
da809fdeda
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ final class PersistentCollection implements Collection
|
|||
$this->changed();
|
||||
if ($this->association !== null && $this->association->isOneToMany() &&
|
||||
$this->association->orphanRemoval) {
|
||||
$this->em->getUnitOfWork()->scheduleOrphanRemoval($removed);
|
||||
$this->em->getUnitOfWork()->scheduleOrphanRemoval($element);
|
||||
}
|
||||
}
|
||||
return $removed;
|
||||
|
|
Loading…
Add table
Reference in a new issue