/** * Add a new comment * * @param Comment $comment * @return Article */ public function addComment(Comment $comment) { $comment->setArticle($this); $this->comments->add($comment); return $this; }