mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 18:28:49 +02:00
Added possibility to import storelocation and instock amount
This commit is contained in:
parent
5d318b2693
commit
b38f49a90e
2 changed files with 50 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue