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