@@ 479-481 (lines=3) @@ | ||
476 | $this->coll->set($key, $value); |
|
477 | ||
478 | // Handle orphanRemoval |
|
479 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
480 | $this->uow->unscheduleOrphanRemoval($value); |
|
481 | } |
|
482 | ||
483 | $this->changed(); |
|
484 | } |
|
@@ 501-503 (lines=3) @@ | ||
498 | $this->coll->add($value); |
|
499 | $this->changed(); |
|
500 | ||
501 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
502 | $this->uow->unscheduleOrphanRemoval($value); |
|
503 | } |
|
504 | ||
505 | return true; |
|
506 | } |