code: private function createDeleteForm(Post $post)
      {
          return $this->createFormBuilder()
              ->setAction($this->generateUrl('blog_category_delete', array('id' => $post->getId())))
              ->setMethod('DELETE')
              ->getForm()
          ;
      }
docs: Creates a form to delete a Post entity.
  
  @param Post $post The Post entity
  
  @return \Symfony\Component\Form\Form The form