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

@param Departamento $departamento The Departamento entity

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