public function crearAction()
 {
     $peticion = $this->getRequest();
     $provincia = new Provincia();
     $formulario = $this->createForm(new ProvinciaType());
     $formulario->handleRequest($peticion);
     if ($formulario->isValid()) {
         $_nuevoNombre = $formulario->getData()->getNombre();
         $provincia->setNombre($_nuevoNombre);
         $em = $this->getDoctrine()->getManager();
         $em->persist($provincia);
         $em->flush();
         return $this->redirect($this->generateUrl('admin_provincia_index'));
     }
     return $this->render('AdminBundle:Provincia:crear.html.twig', array('provincia' => $provincia, 'form' => $formulario->createView()));
 }
 public function __toString()
 {
     $this->__load();
     return parent::__toString();
 }