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