original_string: public function newAction($postid)
      {
          $post = $this->getPost($postid);
  
          $entity = new Comment();
          $form   = $this->createForm(new CommentType(), $entity);
  
          return array(
              'entity' => $entity,
              'post'   => $post,
              'form'   => $form->createView(),
          );
      }
code: public function newAction($postid)
      {
          $post = $this->getPost($postid);
  
          $entity = new Comment();
          $form   = $this->createForm(new CommentType(), $entity);
  
          return array(
              'entity' => $entity,
              'post'   => $post,
              'form'   => $form->createView(),
          );
      }
code_tokens: public function newAction ( $ postid ) { $ post = $ this -> getPost ( $ postid ) ; $ entity = new Comment ( ) ; $ form = $ this -> createForm ( new CommentType ( ) , $ entity ) ; return array ( 'entity' => $ entity , 'post' => $ post , 'form' => $ form -> createView ( ) , ) ; }
docstring: Displays a form to create a new Comment entity.
  
  @Route("/new", name="post_comment_new")
  @Secure("ROLE_COMMENT_WRITE")
  @Template()
docstring_tokens: Displays a form to create a new Comment entity .