1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

DDC-735 - Forward compatible fix for ArrayCollection::removeElement() returning the element instead of true

This commit is contained in:
Benjamin Eberlei 2010-08-09 21:26:10 +02:00
parent 8ea1d3825f
commit da809fdeda

View file

@ -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;