mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Properly use doctrine DBAL notIn statement
This commit is contained in:
@@ -820,8 +820,8 @@ class databox extends base
|
||||
->from('coll', 'c');
|
||||
if (count($colls) > 0) {
|
||||
$builder
|
||||
->where($builder->expr()->notIn('c.coll_id', ':colls'))
|
||||
->setParameter('colls', $colls)
|
||||
->where($builder->expr()->notIn('c.coll_id', [':colls']))
|
||||
->setParameter('colls', $colls, Connection::PARAM_INT_ARRAY)
|
||||
;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user