private function createCommentForm(CommentFront $model, $entity)
    {
        $form = $this->createForm('BlogBundle\Form\CommentFrontType', $model, array(
            'action' => $this->generateUrl('blog_blog_comment', array('post' => $entity->getId())),
            'method' => 'POST',
            'attr' => array('id' => 'comment-form','class' => 'comment-form')
        ));

        return $form;
    }