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