@@ 2605-2613 (lines=9) @@ | ||
2602 | * |
|
2603 | * @param \Doctrine\ODM\MongoDB\PersistentCollection $coll |
|
2604 | */ |
|
2605 | public function unscheduleCollectionDeletion(PersistentCollection $coll) |
|
2606 | { |
|
2607 | $oid = spl_object_hash($coll); |
|
2608 | if (isset($this->collectionDeletions[$oid])) { |
|
2609 | $topmostOwner = $this->getOwningDocument($coll->getOwner()); |
|
2610 | unset($this->collectionDeletions[$oid]); |
|
2611 | unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
|
2612 | } |
|
2613 | } |
|
2614 | ||
2615 | /** |
|
2616 | * INTERNAL: |
|
@@ 2643-2651 (lines=9) @@ | ||
2640 | * |
|
2641 | * @param \Doctrine\ODM\MongoDB\PersistentCollection $coll |
|
2642 | */ |
|
2643 | public function unscheduleCollectionUpdate(PersistentCollection $coll) |
|
2644 | { |
|
2645 | $oid = spl_object_hash($coll); |
|
2646 | if (isset($this->collectionUpdates[$oid])) { |
|
2647 | $topmostOwner = $this->getOwningDocument($coll->getOwner()); |
|
2648 | unset($this->collectionUpdates[$oid]); |
|
2649 | unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
|
2650 | } |
|
2651 | } |
|
2652 | ||
2653 | /** |
|
2654 | * Checks whether a PersistentCollection is scheduled for update. |