|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if($deliveryAvailabilityPointSale) { |
|
|
if($deliveryAvailabilityPointSale) { |
|
|
$query->andWhere('e.deliveryAvailabilityZone = :deliveryAvailabilityZone'); |
|
|
|
|
|
$query->setParameter('deliveryAvailabilityZone', $deliveryAvailabilityPointSale); |
|
|
|
|
|
|
|
|
$query->andWhere('e.deliveryAvailabilityPointSale = :deliveryAvailabilityPointSale'); |
|
|
|
|
|
$query->setParameter('deliveryAvailabilityPointSale', $deliveryAvailabilityPointSale); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
else{ |
|
|
$query->leftJoin('e.deliveryAvailabilityZone', 'deliveryAvailabilityZone'); |
|
|
$query->leftJoin('e.deliveryAvailabilityZone', 'deliveryAvailabilityZone'); |
|
|
$query->leftJoin('deliveryAvailabilityZone.deliverySlot', 'deliverySlotZone'); |
|
|
$query->leftJoin('deliveryAvailabilityZone.deliverySlot', 'deliverySlotZone'); |
|
|
|
|
|
|