@@ 548-550 (lines=3) @@ | ||
545 | $this->coll->set($key, $value); |
|
546 | ||
547 | // Handle orphanRemoval |
|
548 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
549 | $this->uow->unscheduleOrphanRemoval($value); |
|
550 | } |
|
551 | ||
552 | $this->changed(); |
|
553 | } |
|
@@ 570-572 (lines=3) @@ | ||
567 | $this->coll->add($value); |
|
568 | $this->changed(); |
|
569 | ||
570 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
571 | $this->uow->unscheduleOrphanRemoval($value); |
|
572 | } |
|
573 | ||
574 | return true; |
|
575 | } |