flush() public method

Flushes all persisted changes in all repositories.
public flush ( )
Exemplo n.º 1
0
 public function removeEntity(bool $flush = FALSE)
 {
     $this->repository->remove($this->entity, TRUE);
     if ($flush) {
         $this->repository->flush();
     }
 }