public function addComment(\LCV\CommentBundle\Entity\Comment $comment) { $this->comments[] = $comment; $comment->setAuthor($this); return $this; }