mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-09 08:42:15 +01:00
Deactivate auditing for import and increase max_execution_time
This commit is contained in:
committed by
Constantin Graf
parent
cc10af0b97
commit
0a0b7a03b4
@@ -98,6 +98,7 @@ class ImportDatabaseHelper
|
||||
throw new ImportException('Invalid data: '.implode(', ', $validator->errors()->all()));
|
||||
}
|
||||
|
||||
/** @var TModel $model */
|
||||
$model = new $this->model;
|
||||
foreach ($data as $key => $value) {
|
||||
$model->{$key} = $value;
|
||||
@@ -105,6 +106,9 @@ class ImportDatabaseHelper
|
||||
if ($this->beforeSave !== null) {
|
||||
($this->beforeSave)($model);
|
||||
}
|
||||
if (method_exists($model, 'disableAuditing')) {
|
||||
$model->disableAuditing();
|
||||
}
|
||||
$model->save();
|
||||
|
||||
if ($this->afterCreate !== null) {
|
||||
|
||||
Reference in New Issue
Block a user