| @@ 351-358 (lines=8) @@ | ||
| 348 | /** |
|
| 349 | * {@inheritdoc} |
|
| 350 | */ |
|
| 351 | public function set($key, $value) |
|
| 352 | { |
|
| 353 | parent::set($key, $value); |
|
| 354 | $this->changed(); |
|
| 355 | if (is_object($value) && $this->manager) { |
|
| 356 | $this->manager->getUnitOfWork()->cancelOrphanRemoval($value); |
|
| 357 | } |
|
| 358 | } |
|
| 359 | ||
| 360 | /** |
|
| 361 | * {@inheritdoc} |
|
| @@ 363-372 (lines=10) @@ | ||
| 360 | /** |
|
| 361 | * {@inheritdoc} |
|
| 362 | */ |
|
| 363 | public function add($value) |
|
| 364 | { |
|
| 365 | $this->collection->add($value); |
|
| 366 | $this->changed(); |
|
| 367 | if (is_object($value) && $this->manager) { |
|
| 368 | $this->manager->getUnitOfWork()->cancelOrphanRemoval($value); |
|
| 369 | } |
|
| 370 | ||
| 371 | return true; |
|
| 372 | } |
|
| 373 | ||
| 374 | /** |
|
| 375 | * {@inheritdoc} |
|