@@ 692-694 (lines=3) @@ | ||
689 | $arrayAccess ? $this->coll->offsetSet(null, $value) : $this->coll->add($value); |
|
690 | $this->changed(); |
|
691 | ||
692 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
693 | $this->uow->unscheduleOrphanRemoval($value); |
|
694 | } |
|
695 | ||
696 | return true; |
|
697 | } |
|
@@ 738-740 (lines=3) @@ | ||
735 | $arrayAccess ? $this->coll->offsetSet($offset, $value) : $this->coll->set($offset, $value); |
|
736 | ||
737 | // Handle orphanRemoval |
|
738 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
739 | $this->uow->unscheduleOrphanRemoval($value); |
|
740 | } |
|
741 | ||
742 | $this->changed(); |
|
743 | } |