How to make multiple WHERE IN column query in Doctrine query builder?
问题 I would like to update multiple records in db using WHERE IN statement with two column check. Pure MySql raw query looks something like this.. and it works: UPDATE poll_quota q SET q.count = q.count+1 WHERE q.form_id=14 AND ((q.field_id,q.value) IN (('A',1),('B',1))) My code: $this->createQueryBuilder("q") ->update() ->set("q.count","q.count+1") ->where("q.form_id=:form_id") ->andWhere("((q.field_id,q.value) IN (:wherein))") ->setParameter(":form_id",$form_id) ->setParameter(":wherein",$where