public function showAction(Post $post)
    {
        $deleteForm = $this->createDeleteForm($post);

        return array(
            'entity' => $post,
            'delete_form' => $deleteForm->createView(),
        );
    }
public function showAction(Post $post)
    {
        $deleteForm = $this->createDeleteForm($post);

        return array(
            'entity' => $post,
            'delete_form' => $deleteForm->createView(),
        );
    }
public function showAction ( Post $ post ) { $ deleteForm = $ this -> createDeleteForm ( $ post ) ; return array ( 'entity' => $ post , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Finds and displays a Post entity.

@Route("/{id}")
@Method("GET")
@Template()
Finds and displays a Post entity .