/** * saves the user review rates recalculating it * @return [type] [description] */ public function recalculate_rate() { if ($this->loaded()) { //get all the rates and divide by them $this->rate = Model_Review::get_user_rate($this); $this->save(); return $this->rate; } return FALSE; }