I have this simple example:
$names = ['a', 'b'];
$query = $dbConnection->createQueryBuilder();
$query->select('*')
->from('foo')
->where($query->expr()->in('name', $names));
print $query->getSQL();
outputs
SELECT * FROM foo WHERE name IN (a, b)
instead of expected
SELECT * FROM foo WHERE name IN ('a', 'b')
How can I fix it?