public function afterValidation() { if ($this->votes_points >= 50) { $this->votes++; $this->votes_points = 0; } }