I have the following code
$qb = $this->createQueryBuilder('cs') ->update() ->set('cs.is_active', 1) ->where('cs.reward_coupon = :reward_coupon') ->setMaxResults($limit) ->setParameter('reward_coupon', $rewardCoupon); $qb->getQuery()->execute();
This does not apply LIMIT in the resulting query.
acj89 source share