self::CODE_RECRUITMENT_SERVICES, // 30
];
+ $motivationValueGroup = MotivationValueGroup::find()->where(['alias' => 'month'])->one();
+
+ if (!$motivationValueGroup) {
+ throw new \Exception("Не найдена колонка month");
+ }
+
foreach ($motivations as $motivation) {
foreach ($valueIdIndices as $index) {
- $value = self::getMotivationValue($motivation->id, "month", $index)
+ $value = self::getMotivationValue($motivation->id, $motivationValueGroup->id, $index);
self::saveOrUpdateMotivationValue($motivation->id, "fact", $index, "float", $value);
}
}