예제 #1
0
파일: User.php 프로젝트: ugra92/knowledgems
 /**
  * Add comment
  *
  * @param Comment $comment
  * @return User
  */
 public function addComment(Comment $comment)
 {
     $comment->setUserId($this);
     $this->comments[] = $comment;
     return $this;
 }