/** * Add comment * * @param Comment $comment * @return User */ public function addComment(Comment $comment) { $comment->setUserId($this); $this->comments[] = $comment; return $this; }