|
@@ 2419-2427 (lines=9) @@
|
| 2416 |
|
* @param \Doctrine\ODM\MongoDB\PersistentCollectionInterface $coll |
| 2417 |
|
>>>>>>> Start using PersistentCollectionInterface |
| 2418 |
|
*/ |
| 2419 |
|
public function unscheduleCollectionDeletion(PersistentCollectionInterface $coll) |
| 2420 |
|
{ |
| 2421 |
|
$oid = spl_object_hash($coll); |
| 2422 |
|
if (isset($this->collectionDeletions[$oid])) { |
| 2423 |
|
$topmostOwner = $this->getOwningDocument($coll->getOwner()); |
| 2424 |
|
unset($this->collectionDeletions[$oid]); |
| 2425 |
|
unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
| 2426 |
|
} |
| 2427 |
|
} |
| 2428 |
|
|
| 2429 |
|
/** |
| 2430 |
|
* INTERNAL: |
|
@@ 2462-2470 (lines=9) @@
|
| 2459 |
|
* @param \Doctrine\ODM\MongoDB\PersistentCollectionInterface $coll |
| 2460 |
|
>>>>>>> Start using PersistentCollectionInterface |
| 2461 |
|
*/ |
| 2462 |
|
public function unscheduleCollectionUpdate(PersistentCollectionInterface $coll) |
| 2463 |
|
{ |
| 2464 |
|
$oid = spl_object_hash($coll); |
| 2465 |
|
if (isset($this->collectionUpdates[$oid])) { |
| 2466 |
|
$topmostOwner = $this->getOwningDocument($coll->getOwner()); |
| 2467 |
|
unset($this->collectionUpdates[$oid]); |
| 2468 |
|
unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
| 2469 |
|
} |
| 2470 |
|
} |
| 2471 |
|
|
| 2472 |
|
/** |
| 2473 |
|
* Checks whether a PersistentCollection is scheduled for update. |