andWhere($dqlId.'.merchant = :merchant'); $this->setParameter('merchant', $merchant); return $this; } public function andWhereSection($dqlId, $section):self { $this->andWhere($dqlId.'.section = :section'); $this->setParameter('section', $section); return $this; } public function andWhereMerchantManyToMany($dqlId, $merchant):self { $this->andWhere(':currentMerchant MEMBER OF '.$dqlId.'.merchants'); $this->setParameter('currentMerchant', $merchant); return $this; } }