public function addCommentArticle(Comment $comment, $articleId) { $articles = $this->articleManager->getArticle($articleId); $article = $articles[0]; $comment->setArticleId($article); return $this->repository->addComment($comment); }