mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-13 02:39:36 +00:00
Fixed phpstan issues
This commit is contained in:
parent
bcbbb1ecb9
commit
7f8f5990a7
5 changed files with 100 additions and 5 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue