public function addUser(\Civix\CoreBundle\Entity\User $users)
 {
     $this->__load();
     return parent::addUser($users);
 }
 /**
  * @Route("/assign/{id}/{user_id}", name="civix_front_group_sections_assign")
  * @ParamConverter("section", class="CivixCoreBundle:GroupSection", options={"id" = "id"})
  * @ParamConverter("user", class="CivixCoreBundle:User", options={"id" = "user_id"})
  */
 public function assignAction(Request $request, GroupSection $section, User $user)
 {
     if (!$this->checkSubscriptionPackage()) {
         $this->get('session')->getFlashBag()->add('danger', 'Group sections are not available for this subscription');
         return $this->redirect($this->generateUrl('civix_front_group_subscription_index'));
     }
     if ($section->getGroup() !== $this->getUser() || $request->get('token') !== $this->getToken()) {
         throw new AccessDeniedHttpException();
     }
     $manager = $this->getDoctrine()->getManager();
     $section->addUser($user);
     $manager->flush();
     return $this->redirect($this->generateUrl('civix_front_group_sections_view', array('id' => $section->getId())));
 }