public function delete($id) { $this->em->remove($this->em->getReference('Newscoop\\Subscription\\Section', $id)); $this->em->flush(); }