|
|
@@ -154,6 +154,10 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt |
|
|
|
$query->andWhere('e.user = :user')->setParameter('user', $params['user']); |
|
|
|
} |
|
|
|
|
|
|
|
if(isset($params['address'])) { |
|
|
|
$query->andWhere('e.deliveryAddress = :address OR e.invoiceAddress = :address')->setParameter('address', $params['address']); |
|
|
|
} |
|
|
|
|
|
|
|
if (isset($params['mergeComplementaryOrderShops'])) { |
|
|
|
$query->andWhere('e.mainOrderShop IS NULL'); |
|
|
|
$query->leftJoin('e.complementaryOrderShops', 'complementaryOrderShops'); |