Added possibility to import storelocation and instock amount

This commit is contained in:
Jan Böhmer 2023-03-13 00:22:46 +01:00
parent 5d318b2693
commit b38f49a90e
2 changed files with 50 additions and 3 deletions

View file

@ -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);
}
}