@@ 472-474 (lines=3) @@ | ||
469 | $this->coll->set($key, $value); |
|
470 | ||
471 | // Handle orphanRemoval |
|
472 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
473 | $this->uow->unscheduleOrphanRemoval($value); |
|
474 | } |
|
475 | ||
476 | $this->changed(); |
|
477 | } |
|
@@ 494-496 (lines=3) @@ | ||
491 | $this->coll->add($value); |
|
492 | $this->changed(); |
|
493 | ||
494 | if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
|
495 | $this->uow->unscheduleOrphanRemoval($value); |
|
496 | } |
|
497 | ||
498 | return true; |
|
499 | } |