/**
  * {@inheritDoc}
  */
 public function getMembres()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getMembres', array());
     return parent::getMembres();
 }
 public function ajouterNiveauAction(Request $request)
 {
     if ($request->isXmlHttpRequest()) {
         $libelle = $request->request->get('niveau');
         $niveau = new Niveau();
         $niveau->setNiveau($libelle);
         $em = $this->getDoctrine()->getManager();
         $em->persist($niveau);
         $em->flush();
         $niveaux = $this->getDoctrine()->getRepository('AERGUSassociationBundle:Niveau')->findAll();
         return $this->render('AERGUSassociationBundle:AdminBureau:ajouterNiveau.html.twig', array('niveaux' => $niveaux));
     } else {
         throw new \Exception("Erreur");
     }
 }