Controller/LocalidadController.php
private function createDeleteForm(Localidad $localidad)
    {
        return $this->createFormBuilder()
            ->setAction($this->generateUrl('localidad_delete', array('id' => $localidad->getId())))
            ->setMethod('DELETE')
            ->getForm()
        ;
    }
private function createDeleteForm(Localidad $localidad)
    {
        return $this->createFormBuilder()
            ->setAction($this->generateUrl('localidad_delete', array('id' => $localidad->getId())))
            ->setMethod('DELETE')
            ->getForm()
        ;
    }
private function createDeleteForm ( Localidad $ localidad ) { return $ this -> createFormBuilder ( ) -> setAction ( $ this -> generateUrl ( 'localidad_delete' , array ( 'id' => $ localidad -> getId ( ) ) ) ) -> setMethod ( 'DELETE' ) -> getForm ( ) ; }
Creates a form to delete a Localidad entity.

@param Localidad $localidad The Localidad entity

@return \Symfony\Component\Form\Form The form
Creates a form to delete a Localidad entity .