@@ 476-478 (lines=3) @@ | ||
473 | $this->coll->set($key, $value); |
|
474 | ||
475 | // Handle orphanRemoval |
|
476 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
477 | $this->uow->unscheduleOrphanRemoval($value); |
|
478 | } |
|
479 | ||
480 | $this->changed(); |
|
481 | } |
|
@@ 498-500 (lines=3) @@ | ||
495 | $this->coll->add($value); |
|
496 | $this->changed(); |
|
497 | ||
498 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
499 | $this->uow->unscheduleOrphanRemoval($value); |
|
500 | } |
|
501 | ||
502 | return true; |
|
503 | } |