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