public function addCommentLink(Comment $comment, $linkId) { $link = $this->linkManager->findLinkByPk($linkId); $comment->setLinkId($link); return $this->repository->addComment($comment); }