public function rules() { $model = new Event(); $model->id = $this->get('id'); return $model->buildUniqueExclusionRules(); }