|
@@ 2352-2360 (lines=9) @@
|
| 2349 |
|
* |
| 2350 |
|
* @param PersistentCollectionInterface $coll |
| 2351 |
|
*/ |
| 2352 |
|
public function unscheduleCollectionDeletion(PersistentCollectionInterface $coll) |
| 2353 |
|
{ |
| 2354 |
|
$oid = spl_object_hash($coll); |
| 2355 |
|
if (isset($this->collectionDeletions[$oid])) { |
| 2356 |
|
$topmostOwner = $this->getOwningDocument($coll->getOwner()); |
| 2357 |
|
unset($this->collectionDeletions[$oid]); |
| 2358 |
|
unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
| 2359 |
|
} |
| 2360 |
|
} |
| 2361 |
|
|
| 2362 |
|
/** |
| 2363 |
|
* INTERNAL: |
|
@@ 2390-2398 (lines=9) @@
|
| 2387 |
|
* |
| 2388 |
|
* @param PersistentCollectionInterface $coll |
| 2389 |
|
*/ |
| 2390 |
|
public function unscheduleCollectionUpdate(PersistentCollectionInterface $coll) |
| 2391 |
|
{ |
| 2392 |
|
$oid = spl_object_hash($coll); |
| 2393 |
|
if (isset($this->collectionUpdates[$oid])) { |
| 2394 |
|
$topmostOwner = $this->getOwningDocument($coll->getOwner()); |
| 2395 |
|
unset($this->collectionUpdates[$oid]); |
| 2396 |
|
unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]); |
| 2397 |
|
} |
| 2398 |
|
} |
| 2399 |
|
|
| 2400 |
|
/** |
| 2401 |
|
* Checks whether a PersistentCollection is scheduled for update. |