$query = $this->findByMerchantQuery() ; | $query = $this->findByMerchantQuery() ; | ||||
$query = $this->joinRelations($query) ; | $query = $this->joinRelations($query) ; | ||||
$query->andWhere('e.status = 1'); | |||||
$query->andWhere(':section MEMBER OF e.sections') | $query->andWhere(':section MEMBER OF e.sections') | ||||
->setParameter('section', $section) ; | ->setParameter('section', $section) ; | ||||
$query->leftJoin('e.productCategories', 'productCategories'); | $query->leftJoin('e.productCategories', 'productCategories'); |