public function afterLoad($model) { // we need to collect ID if (isset($model->data[$this->short_name])) { $this->id = $model->data[$this->short_name]; unset($model->data[$this->short_name]); } }