@@ 2416-2424 (lines=9) @@ | ||
2413 | * |
|
2414 | * @param PersistentCollectionInterface $coll |
|
2415 | */ |
|
2416 | public function unscheduleCollectionDeletion(PersistentCollectionInterface $coll) |
|
2417 | { |
|
2418 | $oid = spl_object_hash($coll); |
|
2419 | if (isset($this->collectionDeletions[$oid])) { |
|
2420 | $topmostOwner = $this->getOwningDocument($coll->getOwner()); |
|
2421 | unset($this->collectionDeletions[$oid]); |
|
2422 | unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
|
2423 | } |
|
2424 | } |
|
2425 | ||
2426 | /** |
|
2427 | * INTERNAL: |
|
@@ 2454-2462 (lines=9) @@ | ||
2451 | * |
|
2452 | * @param PersistentCollectionInterface $coll |
|
2453 | */ |
|
2454 | public function unscheduleCollectionUpdate(PersistentCollectionInterface $coll) |
|
2455 | { |
|
2456 | $oid = spl_object_hash($coll); |
|
2457 | if (isset($this->collectionUpdates[$oid])) { |
|
2458 | $topmostOwner = $this->getOwningDocument($coll->getOwner()); |
|
2459 | unset($this->collectionUpdates[$oid]); |
|
2460 | unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
|
2461 | } |
|
2462 | } |
|
2463 | ||
2464 | /** |
|
2465 | * Checks whether a PersistentCollection is scheduled for update. |