コード例 #1
0
 /**
  * Removes the object if it was scheduled for removal.
  *
  * This is usually called during the post-remove event.
  *
  * @param object $object
  */
 protected function removeIfScheduled($object)
 {
     $objectHash = spl_object_hash($object);
     if (isset($this->scheduledForRemoval[$objectHash])) {
         $this->objectPersister->deleteById($this->scheduledForRemoval[$objectHash]);
         unset($this->scheduledForRemoval[$objectHash]);
     }
 }