security = $security ; parent::__construct($entityManager, MerchantConfigInterface::class); } public function findAll() { return $this->createQueryBuilder('m') ->andWhere('m.merchant = :currentMerchant') ->setParameter('currentMerchant', $this->security->getUser()->getMerchant()->getId()) ->getQuery() ->getResult(); } // /** // * @return MerchantConfig[] Returns an array of MerchantConfig objects // */ /* public function findByExampleField($value) { return $this->createQueryBuilder('m') ->andWhere('m.exampleField = :val') ->setParameter('val', $value) ->orderBy('m.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?MerchantConfig { return $this->createQueryBuilder('m') ->andWhere('m.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ }