Neos\Flow\Persistence\Generic\Session::unregisterObject PHP Method

unregisterObject() public method

Unregister an object
public unregisterObject ( string $object ) : void
$object string
return void
    public function unregisterObject($object)
    {
        unset($this->identifierMap[$this->objectMap[$object]]);
        $this->objectMap->detach($object);
    }

Usage Example

 /**
  * Iterate over deleted entities and process them
  *
  * @return void
  */
 protected function processDeletedObjects()
 {
     foreach ($this->deletedEntities as $entity) {
         if ($this->persistenceSession->hasObject($entity)) {
             $this->removeEntity($entity);
             $this->persistenceSession->unregisterReconstitutedEntity($entity);
             $this->persistenceSession->unregisterObject($entity);
         }
     }
     $this->deletedEntities = new \SplObjectStorage();
 }
All Usage Examples Of Neos\Flow\Persistence\Generic\Session::unregisterObject