public function addRateToComment(BaseComment $comment, User $user, $rateValue)
 {
     $rateComment = new CommentRate();
     $rateComment->setComment($comment);
     $rateComment->setUser($user);
     $rateComment->setRateValue($rateValue);
     return $rateComment;
 }
 public function setUser(\Civix\CoreBundle\Entity\User $user = NULL)
 {
     $this->__load();
     return parent::setUser($user);
 }