diff --git a/Model/Importer.php b/Model/Importer.php index 9df24f9..58e560a 100644 --- a/Model/Importer.php +++ b/Model/Importer.php @@ -53,6 +53,7 @@ public function __construct( */ public function processImport(array $dataArray): void { + $this->resetImportModel(); $this->validateData($dataArray); $this->importData(); } @@ -111,6 +112,11 @@ public function getImportModel(): Import return $this->importModel; } + private function resetImportModel(): void + { + $this->importModel = null; + } + public function getErrorAggregator(): ProcessingErrorAggregatorInterface { return $this->getImportModel()->getErrorAggregator();