Browse Source

Merge branch 'develop'

master
Guillaume 4 years ago
parent
commit
51b8cbea0e
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      ShopBundle/Repository/OrderShopRepository.php

+ 1
- 4
ShopBundle/Repository/OrderShopRepository.php View File



use App\Entity\DeliveryAvailabilityPointSale; use App\Entity\DeliveryAvailabilityPointSale;
use App\Entity\DeliveryAvailabilityZone; use App\Entity\DeliveryAvailabilityZone;
use Doctrine\ORM\Query\Expr\Join;
use Doctrine\ORM\QueryBuilder; use Doctrine\ORM\QueryBuilder;
use Lc\ShopBundle\Context\DefaultRepositoryInterface; use Lc\ShopBundle\Context\DefaultRepositoryInterface;
use Lc\ShopBundle\Context\OrderShopInterface; use Lc\ShopBundle\Context\OrderShopInterface;
if (isset($params['mergeComplementaryOrderShops'])) { if (isset($params['mergeComplementaryOrderShops'])) {
$query->andWhere('e.mainOrderShop IS NULL'); $query->andWhere('e.mainOrderShop IS NULL');
$query->leftJoin('e.complementaryOrderShops', 'complementaryOrderShops'); $query->leftJoin('e.complementaryOrderShops', 'complementaryOrderShops');

$query->leftJoin('complementaryOrderShops.orderStatus', 'complementaryOrderStatus');
$query->andWhere('complementaryOrderShops IS NULL OR complementaryOrderStatus.alias IN (:statusAliasValid)');
$query->setParameter('statusAliasValid', OrderStatus::$statusAliasAsValid);
} }


if (isset($params['excludeComplementaryOrderShops'])) { if (isset($params['excludeComplementaryOrderShops'])) {

Loading…
Cancel
Save