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'; }