public function flush();
public function removeEntity(bool $flush = FALSE) { $this->repository->remove($this->entity, TRUE); if ($flush) { $this->repository->flush(); } }