/**
  * Pre-validation logic
  * @return boolean whether to perform validation at all
  */
 protected function beforeValidate()
 {
     // Convert commas to dots
     $this->rating = str_replace(',', '.', $this->rating);
     return parent::beforeValidate();
 }