Neos\Flow\Persistence\AbstractPersistenceManager::clearState PHP Method

clearState() public method

Clears the in-memory state of the persistence.
public clearState ( ) : void
return void
    public function clearState()
    {
        $this->newObjects = [];
    }

Usage Example

 /**
  * Clears the in-memory state of the persistence.
  *
  * Managed instances become detached, any fetches will
  * return data directly from the persistence "backend".
  *
  * @return void
  */
 public function clearState()
 {
     parent::clearState();
     $this->entityManager->clear();
 }
All Usage Examples Of Neos\Flow\Persistence\AbstractPersistenceManager::clearState