catch (Exception) only caught yii\db\Exception, missing
InvalidArgumentException from validation/upload errors. This left
orphaned timetable records with tabel=1 but no timetable_fact entry,
blocking shift reopening.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
}
$transaction->commit();
- } catch (Exception $e) {
+ } catch (\Throwable $e) {
$transaction->rollBack();
throw $e;
}
}
$transaction->commit();
- } catch (Exception $e) {
+ } catch (\Throwable $e) {
$transaction->rollBack();
throw $e;
}