Neos\Flow\Persistence\AbstractPersistenceManager::clearState PHP 메소드

clearState() 공개 메소드

Clears the in-memory state of the persistence.
public clearState ( ) : void
리턴 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