import hiltes

This commit is contained in:
mmoeller 2023-02-02 13:52:20 +01:00
parent 3df8c01c8a
commit 0dc7cdc398
No known key found for this signature in database

View File

@ -56,14 +56,18 @@ class Shopware
//Beziehungen zu Produkten holen //Beziehungen zu Produkten holen
$criteria->addAssociation('lineItems'); $criteria->addAssociation('lineItems');
$orders = false;
try { try {
$orders = $orderRepository->search($criteria, $context); $orders = $orderRepository->search($criteria, $context);
return $orders->getEntities();
//$value->setData((array)$orders->getEntities()); //$value->setData((array)$orders->getEntities());
} catch (\Exception $e) { } catch (\Exception $e) {
$this->logger->error($e->getMessage()); $this->logger->error($e->getMessage());
} }
return $orders->getEntities();
} }
public function setProduct(Products $product){ public function setProduct(Products $product){