public function delete($id) { $proxy = $this->getEntityManager()->getReference('Newscoop\\Entity\\Acl\\Rule', $id); $this->getEntityManager()->remove($proxy); }