/** * Add a new comment to an article * * @param Article $article * @param int $comment */ public function addNewComment(Article $article, Comment $comment) { $article->addComment($comment); //TODO: Use cascade persist into article instead $this->commentManager->create($comment); }