public function ajouterBlockAction(Request $request)
 {
     if ($request->isXmlHttpRequest()) {
         $nom = $request->request->get('nom');
         $block = new Block();
         $block->setBlock($nom);
         $em = $this->getDoctrine()->getManager();
         $em->persist($block);
         $em->flush();
         $blocks = $this->getDoctrine()->getRepository('AERGUSassociationBundle:Block')->findAll();
         return $this->render('AERGUSassociationBundle:AdminResidence:ajouterBlock.html.twig', array('blocks' => $blocks));
     } else {
         throw new \Exception("Erreur");
     }
 }
 /**
  * {@inheritDoc}
  */
 public function getMembres()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getMembres', array());
     return parent::getMembres();
 }