@@ 2413-2421 (lines=9) @@ | ||
2410 | * |
|
2411 | * @param PersistentCollectionInterface $coll |
|
2412 | */ |
|
2413 | public function unscheduleCollectionDeletion(PersistentCollectionInterface $coll) |
|
2414 | { |
|
2415 | $oid = spl_object_hash($coll); |
|
2416 | if (isset($this->collectionDeletions[$oid])) { |
|
2417 | $topmostOwner = $this->getOwningDocument($coll->getOwner()); |
|
2418 | unset($this->collectionDeletions[$oid]); |
|
2419 | unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
|
2420 | } |
|
2421 | } |
|
2422 | ||
2423 | /** |
|
2424 | * INTERNAL: |
|
@@ 2451-2459 (lines=9) @@ | ||
2448 | * |
|
2449 | * @param PersistentCollectionInterface $coll |
|
2450 | */ |
|
2451 | public function unscheduleCollectionUpdate(PersistentCollectionInterface $coll) |
|
2452 | { |
|
2453 | $oid = spl_object_hash($coll); |
|
2454 | if (isset($this->collectionUpdates[$oid])) { |
|
2455 | $topmostOwner = $this->getOwningDocument($coll->getOwner()); |
|
2456 | unset($this->collectionUpdates[$oid]); |
|
2457 | unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
|
2458 | } |
|
2459 | } |
|
2460 | ||
2461 | /** |
|
2462 | * Checks whether a PersistentCollection is scheduled for update. |