public function delete(User $entity) { $this->om->remove($entity); $this->om->flush(); return $this; }