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