You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some investigation, I found that when you write
$query->andWhere("$alias.foo IN (:bar)");
$query->setParameter('bar', []);
Or
$query->andWhere("$alias.foo NOT IN (:bar)");
$query->setParameter('bar', []);
The params are processed by the method expandListParameters of the class Doctrine\DBAL\SQLParserUtils by the following line.
$expandStr = $count > 0 ? implode(', ', array_fill(0, $count, '?')) : 'NULL';
So the real executed query is
SELECT count(DISTINCT a0_.id) AS sclr_0 FROM asv_client a0_ WHERE a0_.id NOT IN (NULL);
When writing the following where clause
The query is executed without errors. (And return no result)
I was looking for the real executed query, looked at the profiler and saw this.
But
Is not an executable query.
So, something else is executed in database ; and should be displayed in the profiler.
The actual code to display the query in the profiler is the following
The text was updated successfully, but these errors were encountered: