public function deleteGroup(GroupInterface $group) { $this->em->remove($group); $this->em->flush(); }