findByMerchantQuery() ; $query->select('DISTINCT e.type'); $query->andWhere('e.status = 1'); return $query->getQuery()->getResult() ; } public function getValuesOfFieldCode(){ $query = $this->findByMerchantQuery() ; $query->select('DISTINCT e.codes'); $query->andWhere('e.status = 1'); return $query->getQuery()->getResult() ; } public function getEligibleReductionCart($order) { $query = $this->findByMerchantQuery() ; $query->andWhere('e.status = 1'); return $query->getQuery()->getResult(); } }