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