diff --git a/src/Helper/Shopware.php b/src/Helper/Shopware.php index e5734e6..532110d 100644 --- a/src/Helper/Shopware.php +++ b/src/Helper/Shopware.php @@ -56,14 +56,18 @@ class Shopware //Beziehungen zu Produkten holen $criteria->addAssociation('lineItems'); + $orders = false; + try { $orders = $orderRepository->search($criteria, $context); - return $orders->getEntities(); + //$value->setData((array)$orders->getEntities()); } catch (\Exception $e) { $this->logger->error($e->getMessage()); } + + return $orders->getEntities(); } public function setProduct(Products $product){