|
@@ 2635-2643 (lines=9) @@
|
| 2632 |
|
* |
| 2633 |
|
* @param \Doctrine\ODM\MongoDB\PersistentCollectionInterface $coll |
| 2634 |
|
*/ |
| 2635 |
|
public function unscheduleCollectionDeletion(PersistentCollectionInterface $coll) |
| 2636 |
|
{ |
| 2637 |
|
$oid = spl_object_hash($coll); |
| 2638 |
|
if (isset($this->collectionDeletions[$oid])) { |
| 2639 |
|
$topmostOwner = $this->getOwningDocument($coll->getOwner()); |
| 2640 |
|
unset($this->collectionDeletions[$oid]); |
| 2641 |
|
unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
| 2642 |
|
} |
| 2643 |
|
} |
| 2644 |
|
|
| 2645 |
|
/** |
| 2646 |
|
* INTERNAL: |
|
@@ 2673-2681 (lines=9) @@
|
| 2670 |
|
* |
| 2671 |
|
* @param \Doctrine\ODM\MongoDB\PersistentCollectionInterface $coll |
| 2672 |
|
*/ |
| 2673 |
|
public function unscheduleCollectionUpdate(PersistentCollectionInterface $coll) |
| 2674 |
|
{ |
| 2675 |
|
$oid = spl_object_hash($coll); |
| 2676 |
|
if (isset($this->collectionUpdates[$oid])) { |
| 2677 |
|
$topmostOwner = $this->getOwningDocument($coll->getOwner()); |
| 2678 |
|
unset($this->collectionUpdates[$oid]); |
| 2679 |
|
unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
| 2680 |
|
} |
| 2681 |
|
} |
| 2682 |
|
|
| 2683 |
|
/** |
| 2684 |
|
* Checks whether a PersistentCollection is scheduled for update. |