public function attributes() { // 添加关联字段到可搜索特性 return array_merge(parent::attributes(), ['country.caption']); }