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