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