mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-06 15:30:13 +01:00
Added possibility to import storelocation and instock amount
This commit is contained in:
@@ -54,10 +54,16 @@ class StructuralElementFromNameDenormalizer implements ContextAwareDenormalizerI
|
||||
foreach ($elements as $element) {
|
||||
$this->em->persist($element);
|
||||
}
|
||||
if (empty($elements)) {
|
||||
return null;
|
||||
}
|
||||
return end($elements);
|
||||
}
|
||||
|
||||
$elements = $repo->getEntityByPath($data, $path_delimiter);
|
||||
if (empty($elements)) {
|
||||
return null;
|
||||
}
|
||||
return end($elements);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user