示例#1
0
 /**
  * Add comments
  *
  * @param \LCV\CommentBundle\Entity\Comment $comments
  * @return Article
  */
 public function addComment(\LCV\CommentBundle\Entity\Comment $comments)
 {
     $this->comments[] = $comments;
     $comments->setArticle($this);
     return $this;
 }
示例#2
0
 public function addComment(\LCV\CommentBundle\Entity\Comment $comment)
 {
     $this->comments[] = $comment;
     $comment->setAuthor($this);
     return $this;
 }