Jomon Johnson

Results comments of Jomon Johnson

but `'setScenario' => true,` only set in ``` protected static $_setScenarioEvents = [ ActiveRecord::EVENT_INIT, ActiveRecord::EVENT_AFTER_FIND, ]; ``` it conflict with UploadBehavior i am using

i am using https://github.com/trntv/yii2-file-kit to upload file. It have UploadBehavior for image_path, image_base_url fields in default scenario. i want to update that fields with csv data. i want to write...

controller import action ``` public function actionImport() { $model = new ImportForm(); $model->type = 'series'; if ($model->load(Yii::$app->request->post())) { $model->file = UploadedFile::getInstance($model, 'file'); if ($model->upload()) { $importer = new Importer([ 'filePath'...

i think ` protected static $_setScenarioEvents ` need to public

in ProductSeries model

```php ./vendor/bin/hidev fix --dir=vendor/package ``` to fix cs change inside package from project terminal like test,build,...

you can check my config in https://github.com/codexten/yii-core/blob/master/src/config/core.php#L15 Event manager https://github.com/codexten/yii-core/blob/master/src/components/EventManager.php example cron controller https://github.com/codexten/yii-app-console/blob/master/src/controllers/CronController.php attaching cron task to cron events ```php 'eventManager' => [ 'events' => [ [CronController::class, CronController::EVENT_ON_DAILY_RUN, [Events::class,...