From a5ce1a71f06387948e0643fca265711b65a79c87 Mon Sep 17 00:00:00 2001 From: "stephan.altmann" Date: Fri, 3 May 2019 12:49:26 +0200 Subject: [PATCH] fixed reset method --- Services/Helper/ShopwareResetHelper.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Services/Helper/ShopwareResetHelper.php b/Services/Helper/ShopwareResetHelper.php index b86a2e6..15922de 100644 --- a/Services/Helper/ShopwareResetHelper.php +++ b/Services/Helper/ShopwareResetHelper.php @@ -80,13 +80,13 @@ private function resetShopConnectionEntity($entity) $builder->set('a.' . $name, ':null'); } - $builder - ->setParameter('null', null) - ->getQuery(); - /** @var Query $builder */ try { - $builder->execute(); + $builder + ->setParameter('null', null) + ->getQuery() + ->execute(); + } catch (Exception $e) { return 'failure'; }