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