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