The easiest way to do that is by binding the array itself as a parameter:
$queryBuilder->andWhere('r.winner IN (:ids)')
->setParameter('ids', $ids);
More Related Contents:
- Select entries between dates in doctrine 2
- Subquery in doctrine2 notIN Function
- Join subquery with doctrine 2 DBAL
- Doctrine2: Best way to handle many-to-many with extra columns in reference table
- Is there a built-in way to get all of the changed/updated fields in a Doctrine 2 entity
- On delete cascade with doctrine2
- Why I am suddenly getting a “Typed property must not be accessed before initialization” error when introducing properties type hints?
- How to do left join in Doctrine?
- Default value in Doctrine
- Doctrine 2 and Many-to-many link table with an extra field
- How to select randomly with doctrine
- Should I use EAV model?
- Too much data with var_dump in symfony2 doctrine2
- How to re-save the entity as another row in Doctrine 2
- Cakephp-3.x: How to change the data type of a selected alias?
- Injecting SecurityContext into a Listener prePersist or preUpdate in Symfony2 to get User in a createdBy or updatedBy Causes Circular Reference Error
- How to set up entity (doctrine) for database view in Symfony 2
- Symfony2, Dynamic DB Connection/Early override of Doctrine Service
- How to get a one-dimensional scalar array as a doctrine dql query result?
- How to setup table prefix in symfony2
- How to use a findBy method with comparative criteria
- Symfony 2.0 getting service inside entity
- “Class XXX is not a valid entity or mapped super class” after moving the class in the filesystem
- Can I access discriminator field from php in doctrine2?
- How to force Doctrine to update array type fields?
- Query on a many-to-many relationship using Doctrine with Symfony2
- Doctrine2 association mapping with conditions
- How can I use DATE() in Doctrine 2 DQL?
- Transposing multidimensional arrays in PHP
- How do you reindex an array in PHP but with indexes starting from 1?