@@ 2408-2416 (lines=9) @@ | ||
2405 | * |
|
2406 | * @param PersistentCollectionInterface $coll |
|
2407 | */ |
|
2408 | public function unscheduleCollectionDeletion(PersistentCollectionInterface $coll) |
|
2409 | { |
|
2410 | $oid = spl_object_hash($coll); |
|
2411 | if (isset($this->collectionDeletions[$oid])) { |
|
2412 | $topmostOwner = $this->getOwningDocument($coll->getOwner()); |
|
2413 | unset($this->collectionDeletions[$oid]); |
|
2414 | unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
|
2415 | } |
|
2416 | } |
|
2417 | ||
2418 | /** |
|
2419 | * INTERNAL: |
|
@@ 2446-2454 (lines=9) @@ | ||
2443 | * |
|
2444 | * @param PersistentCollectionInterface $coll |
|
2445 | */ |
|
2446 | public function unscheduleCollectionUpdate(PersistentCollectionInterface $coll) |
|
2447 | { |
|
2448 | $oid = spl_object_hash($coll); |
|
2449 | if (isset($this->collectionUpdates[$oid])) { |
|
2450 | $topmostOwner = $this->getOwningDocument($coll->getOwner()); |
|
2451 | unset($this->collectionUpdates[$oid]); |
|
2452 | unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
|
2453 | } |
|
2454 | } |
|
2455 | ||
2456 | /** |
|
2457 | * Checks whether a PersistentCollection is scheduled for update. |