createQueryBuilder('e') ->andWhere('e.userMerchant = :userMerchant') ->setParameter('userMerchant', $userMerchant) ->addOrderBy('e.createdAt', 'DESC') ->getQuery()->getResult(); } }