I want to build a query using where with multiple values. Number of values is variable (from one to ten). My query looks like this for now:
return $repository->createQueryBuilder('s')
->where('s.id = :id')
->setParameter('id', '1')
But I want that id parameter to be array. I tried setParameters, but that's not the function.