protected function getComment($id)
    {
        $comment = $this->commentManager->find($id);

        if (null === $comment) {
            throw new NotFoundHttpException(sprintf('Comment (%d) not found', $id));
        }

        return $comment;
    }
protected function getComment($id)
    {
        $comment = $this->commentManager->find($id);

        if (null === $comment) {
            throw new NotFoundHttpException(sprintf('Comment (%d) not found', $id));
        }

        return $comment;
    }
protected function getComment ( $ id ) { $ comment = $ this -> commentManager -> find ( $ id ) ; if ( null === $ comment ) { throw new NotFoundHttpException ( sprintf ( 'Comment (%d) not found' , $ id ) ) ; } return $ comment ; }
Returns a comment entity instance.

@param int $id A comment identifier

@throws NotFoundHttpException

@return Comment
Returns a comment entity instance .