コード例 #1
0
ファイル: PersistenceManager.php プロジェクト: nxpthx/FLOW3
 /**
  * Clears the in-memory state of the persistence.
  *
  * Managed instances become detached, any fetches will
  * return data directly from the persistence "backend".
  * It will also forget about new objects.
  *
  * @return void
  */
 public function clearState()
 {
     parent::clearState();
     $this->addedObjects = new \SplObjectStorage();
     $this->removedObjects = new \SplObjectStorage();
     $this->changedObjects = new \SplObjectStorage();
     $this->persistenceSession->destroy();
 }
コード例 #2
0
ファイル: PersistenceManager.php プロジェクト: nxpthx/FLOW3
 /**
  * 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();
 }