public static function getWorkTypesList() { $workTypes = WorkType::find()->all(); return ArrayHelper::map($workTypes, 'id', 'type'); }