@@ 2415-2423 (lines=9) @@ | ||
2412 | * |
|
2413 | * @param \Doctrine\ODM\MongoDB\PersistentCollection $coll |
|
2414 | */ |
|
2415 | public function unscheduleCollectionDeletion(PersistentCollection $coll) |
|
2416 | { |
|
2417 | $oid = spl_object_hash($coll); |
|
2418 | if (isset($this->collectionDeletions[$oid])) { |
|
2419 | $topmostOwner = $this->getOwningDocument($coll->getOwner()); |
|
2420 | unset($this->collectionDeletions[$oid]); |
|
2421 | unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
|
2422 | } |
|
2423 | } |
|
2424 | ||
2425 | /** |
|
2426 | * INTERNAL: |
|
@@ 2453-2461 (lines=9) @@ | ||
2450 | * |
|
2451 | * @param \Doctrine\ODM\MongoDB\PersistentCollection $coll |
|
2452 | */ |
|
2453 | public function unscheduleCollectionUpdate(PersistentCollection $coll) |
|
2454 | { |
|
2455 | $oid = spl_object_hash($coll); |
|
2456 | if (isset($this->collectionUpdates[$oid])) { |
|
2457 | $topmostOwner = $this->getOwningDocument($coll->getOwner()); |
|
2458 | unset($this->collectionUpdates[$oid]); |
|
2459 | unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
|
2460 | } |
|
2461 | } |
|
2462 | ||
2463 | /** |
|
2464 | * Checks whether a PersistentCollection is scheduled for update. |