コード例 #1
0
 public function addRateToComment(BaseComment $comment, User $user, $rateValue)
 {
     $rateComment = new CommentRate();
     $rateComment->setComment($comment);
     $rateComment->setUser($user);
     $rateComment->setRateValue($rateValue);
     return $rateComment;
 }
 public function setRateValue($rateValue)
 {
     $this->__load();
     return parent::setRateValue($rateValue);
 }