Fixed phpstan issues

This commit is contained in:
Jan Böhmer 2026-03-07 22:30:39 +01:00
parent bcbbb1ecb9
commit 7f8f5990a7
5 changed files with 100 additions and 5 deletions

View file

@ -325,7 +325,11 @@ class EntityImporter
//Iterate over each $entity write it to DB (the invalid entities were already filtered out).
foreach ($entities as $entity) {
$this->persistRecursively($entity);
if ($entity instanceof AbstractStructuralDBElement) {
$this->persistRecursively($entity);
} else {
$this->em->persist($entity);
}
}
//Save changes to database, when no error happened, or we should continue on error.