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