/**
  * @param GroupEvent $event
  */
 public function deleteGroupReference(GroupEvent $event)
 {
     $group = $event->getGroup();
     $users = $this->userRepository->findByGroup($group);
     foreach ($users as $user) {
         $user->removeGroup($group);
         $this->objectManager->flush($user);
     }
 }
 /**
  * @param GroupEvent $event
  */
 public function groupUpdate(GroupEvent $event)
 {
     $this->sendLog('open_orchestra_log.group.update', $event->getGroup());
 }