Newscoop\GimmeBundle\Controller\EditorialCommentsApiController::getCommentAction PHP Метод

getCommentAction() публичный Метод

Get single editorial comment
public getCommentAction ( Request $request, $number, $language, $commentId )
$request Symfony\Component\HttpFoundation\Request
    public function getCommentAction(Request $request, $number, $language, $commentId)
    {
        $em = $this->container->get('em');
        $comment = $em->getRepository('Newscoop\\ArticlesBundle\\Entity\\EditorialComment')->getOneByArticleAndCommentId($number, $language, $commentId)->getOneOrNullResult();
        if (!$comment) {
            throw new EntityNotFoundException('Result was not found.');
        }
        return $comment;
    }