/** * create thumbs for image process */ public function process() { $roundList = RoundSaveThumb::find()->where(['status' => Status::CREATED])->all(); foreach ($roundList as $roundObj) { $createHelper = new CreateThumbsFileHelper($roundObj); $createHelper->process(); } return true; }