From fad1a2c643d662234c8b7a0186b3b457e76b631b Mon Sep 17 00:00:00 2001 From: Dominik Pfaffenbauer Date: Tue, 30 Apr 2019 15:37:39 +0200 Subject: [PATCH] [CoreBundle] remove result cache for store price -> it causes issues with inheritance --- .../CoreBundle/Doctrine/ORM/ProductStorePriceRepository.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/CoreShop/Bundle/CoreBundle/Doctrine/ORM/ProductStorePriceRepository.php b/src/CoreShop/Bundle/CoreBundle/Doctrine/ORM/ProductStorePriceRepository.php index 8a0a17484d..18a3c26392 100644 --- a/src/CoreShop/Bundle/CoreBundle/Doctrine/ORM/ProductStorePriceRepository.php +++ b/src/CoreShop/Bundle/CoreBundle/Doctrine/ORM/ProductStorePriceRepository.php @@ -28,7 +28,6 @@ public function findForProduct(ProductInterface $product) ->andWhere('o.product = :product') ->setParameter('product', $product->getId()) ->getQuery() - ->useResultCache(true) ->useQueryCache(true) ->getResult(); } @@ -44,7 +43,6 @@ public function findForProductAndProperty(ProductInterface $product, string $pro ->setParameter('product', $product->getId()) ->setParameter('property', $property) ->getQuery() - ->useResultCache(true) ->useQueryCache(true) ->getResult(); } @@ -62,7 +60,6 @@ public function findForProductAndStoreAndProperty(ProductInterface $product, Sto ->setParameter('store', $store) ->setParameter('property', $property) ->getQuery() - ->useResultCache(true) ->useQueryCache(true) ->getOneOrNullResult(); }