'ID пользователя', 'dt_start' => 'Дата начала отпуска', 'dt_end' => 'Дата конца отпуска' ]; } public function afterFind() { parent::afterFind(); // TODO: Change the autogenerated stub $this->dt_start = date('d-m-Y', $this->dt_start); $this->dt_end = date('d-m-Y', $this->dt_end); } public function getUsers() { return $this->hasOne(UserCard::className(),['id' => 'card_id']); } }