@@ 678-680 (lines=3) @@ | ||
675 | $arrayAccess ? $this->coll->offsetSet(null, $value) : $this->coll->add($value); |
|
676 | $this->changed(); |
|
677 | ||
678 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
679 | $this->uow->unscheduleOrphanRemoval($value); |
|
680 | } |
|
681 | ||
682 | return true; |
|
683 | } |
|
@@ 719-721 (lines=3) @@ | ||
716 | $arrayAccess ? $this->coll->offsetSet($offset, $value) : $this->coll->set($offset, $value); |
|
717 | ||
718 | // Handle orphanRemoval |
|
719 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
720 | $this->uow->unscheduleOrphanRemoval($value); |
|
721 | } |
|
722 | ||
723 | $this->changed(); |
|
724 | } |