|
@@ 2400-2408 (lines=9) @@
|
| 2397 |
|
* |
| 2398 |
|
* @param \Doctrine\ODM\MongoDB\PersistentCollection $coll |
| 2399 |
|
*/ |
| 2400 |
|
public function unscheduleCollectionDeletion(PersistentCollection $coll) |
| 2401 |
|
{ |
| 2402 |
|
$oid = spl_object_hash($coll); |
| 2403 |
|
if (isset($this->collectionDeletions[$oid])) { |
| 2404 |
|
$topmostOwner = $this->getOwningDocument($coll->getOwner()); |
| 2405 |
|
unset($this->collectionDeletions[$oid]); |
| 2406 |
|
unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
| 2407 |
|
} |
| 2408 |
|
} |
| 2409 |
|
|
| 2410 |
|
/** |
| 2411 |
|
* INTERNAL: |
|
@@ 2438-2446 (lines=9) @@
|
| 2435 |
|
* |
| 2436 |
|
* @param \Doctrine\ODM\MongoDB\PersistentCollection $coll |
| 2437 |
|
*/ |
| 2438 |
|
public function unscheduleCollectionUpdate(PersistentCollection $coll) |
| 2439 |
|
{ |
| 2440 |
|
$oid = spl_object_hash($coll); |
| 2441 |
|
if (isset($this->collectionUpdates[$oid])) { |
| 2442 |
|
$topmostOwner = $this->getOwningDocument($coll->getOwner()); |
| 2443 |
|
unset($this->collectionUpdates[$oid]); |
| 2444 |
|
unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
| 2445 |
|
} |
| 2446 |
|
} |
| 2447 |
|
|
| 2448 |
|
/** |
| 2449 |
|
* Checks whether a PersistentCollection is scheduled for update. |