public function createDeleteForm(SakonninFile $file)
    {
        return $this->createFormBuilder()
            ->setAction($this->generateUrl('file_delete', array('id' => $file->getId())))
            ->setMethod('DELETE')
            ->getForm()
        ;
    }
public function createDeleteForm(SakonninFile $file)
    {
        return $this->createFormBuilder()
            ->setAction($this->generateUrl('file_delete', array('id' => $file->getId())))
            ->setMethod('DELETE')
            ->getForm()
        ;
    }
public function createDeleteForm ( SakonninFile $ file ) { return $ this -> createFormBuilder ( ) -> setAction ( $ this -> generateUrl ( 'file_delete' , array ( 'id' => $ file -> getId ( ) ) ) ) -> setMethod ( 'DELETE' ) -> getForm ( ) ; }
Creates a form to delete a file entity.

@param SakonninFile $file The file entity

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