@@ 552-554 (lines=3) @@ | ||
549 | $this->coll->set($key, $value); |
|
550 | ||
551 | // Handle orphanRemoval |
|
552 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
553 | $this->uow->unscheduleOrphanRemoval($value); |
|
554 | } |
|
555 | ||
556 | $this->changed(); |
|
557 | } |
|
@@ 574-576 (lines=3) @@ | ||
571 | $this->coll->add($value); |
|
572 | $this->changed(); |
|
573 | ||
574 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
575 | $this->uow->unscheduleOrphanRemoval($value); |
|
576 | } |
|
577 | ||
578 | return true; |
|
579 | } |