How to use andWhere and orWhere in Doctrine? February 1, 2023 by Tarik $q->where("a = 1") ->andWhere("b = 1 OR b = 2") ->andWhere("c = 2 OR c = 2") ;