findByMerchantQuery() ; $query->andWhere('e.status = 1'); $query->andWhere(':user MEMBER OF e.users'); $query->setParameter('user', $user); return $query->getQuery()->getResult() ; } }