@@ 2610-2618 (lines=9) @@ | ||
2607 | * |
|
2608 | * @param \Doctrine\ODM\MongoDB\PersistentCollection $coll |
|
2609 | */ |
|
2610 | public function unscheduleCollectionDeletion(PersistentCollection $coll) |
|
2611 | { |
|
2612 | $oid = spl_object_hash($coll); |
|
2613 | if (isset($this->collectionDeletions[$oid])) { |
|
2614 | $topmostOwner = $this->getOwningDocument($coll->getOwner()); |
|
2615 | unset($this->collectionDeletions[$oid]); |
|
2616 | unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
|
2617 | } |
|
2618 | } |
|
2619 | ||
2620 | /** |
|
2621 | * INTERNAL: |
|
@@ 2648-2656 (lines=9) @@ | ||
2645 | * |
|
2646 | * @param \Doctrine\ODM\MongoDB\PersistentCollection $coll |
|
2647 | */ |
|
2648 | public function unscheduleCollectionUpdate(PersistentCollection $coll) |
|
2649 | { |
|
2650 | $oid = spl_object_hash($coll); |
|
2651 | if (isset($this->collectionUpdates[$oid])) { |
|
2652 | $topmostOwner = $this->getOwningDocument($coll->getOwner()); |
|
2653 | unset($this->collectionUpdates[$oid]); |
|
2654 | unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
|
2655 | } |
|
2656 | } |
|
2657 | ||
2658 | /** |
|
2659 | * Checks whether a PersistentCollection is scheduled for update. |