|
@@ 469-471 (lines=3) @@
|
| 466 |
|
$this->coll->set($key, $value); |
| 467 |
|
|
| 468 |
|
// Handle orphanRemoval |
| 469 |
|
if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
| 470 |
|
$this->uow->unscheduleOrphanRemoval($value); |
| 471 |
|
} |
| 472 |
|
|
| 473 |
|
$this->changed(); |
| 474 |
|
} |
|
@@ 491-493 (lines=3) @@
|
| 488 |
|
$this->coll->add($value); |
| 489 |
|
$this->changed(); |
| 490 |
|
|
| 491 |
|
if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) { |
| 492 |
|
$this->uow->unscheduleOrphanRemoval($value); |
| 493 |
|
} |
| 494 |
|
|
| 495 |
|
return true; |
| 496 |
|
} |