/** * @param $path */ public function actionStart($id) { $model = Import::findOne($id); /* @var Import $model */ if (!$model) { throw new \yii\console\Exception("Import Model not found: {$id}"); } $model->process(); }