Skip to content

Commit d36a10a

Browse files
committed
Reset import model between imports
1 parent 9c08e87 commit d36a10a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Model/Importer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public function __construct(
5353
*/
5454
public function processImport(array $dataArray): void
5555
{
56+
$this->resetImportModel();
5657
$this->validateData($dataArray);
5758
$this->importData();
5859
}
@@ -111,6 +112,11 @@ public function getImportModel(): Import
111112
return $this->importModel;
112113
}
113114

115+
private function resetImportModel(): void
116+
{
117+
$this->importModel = null;
118+
}
119+
114120
public function getErrorAggregator(): ProcessingErrorAggregatorInterface
115121
{
116122
return $this->getImportModel()->getErrorAggregator();

0 commit comments

Comments
 (0)