50], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'ID' => 'ID', 'create_user_id' => 'Create User ID', 'create_time' => 'Create Time', 'update_user_id' => 'Update User ID', 'update_time' => 'Update Time', 'cancel_flag' => 'Cancel Flag', 'country_id' => 'Country ID', 'country_name' => 'Country Name', ]; } public static function getCountry() { $model=self::findAll(['cancel_flag' => 0]); return ArrayHelper::map($model, 'country_id', 'country_name'); } }