diff --git a/app/Abstracts/Import.php b/app/Abstracts/Import.php index 084ea2f9a..3fd43fcf8 100644 --- a/app/Abstracts/Import.php +++ b/app/Abstracts/Import.php @@ -234,10 +234,12 @@ abstract class Import implements HasLocalePreference, ShouldQueue, SkipsEmptyRow // This query should be used if there is no deleted_at field in the table or if the deleted data is to be retrieved. return $this->model::withTrashed()->get($this->columns)->each(function ($data) { $data->setAppends([]); + $data->unsetRelations(); }); } else { return $this->model::get($this->columns)->each(function ($data) { $data->setAppends([]); + $data->unsetRelations(); }); } });