diff --git a/src/Service/ReportImporter.php b/src/Service/ReportImporter.php index 030aca24..a7337bce 100644 --- a/src/Service/ReportImporter.php +++ b/src/Service/ReportImporter.php @@ -144,6 +144,9 @@ private function insertExecutionSuite(Execution $execution, \stdClass $suite, st foreach ($suite->suites as $suiteChildren) { $this->insertExecutionSuite($execution, $suiteChildren, $dateFormat, $executionSuite->getId()); } + if (!$parentSuiteId) { + $this->entityManager->clear(); + } } /**