-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Description
Bug Report
| Q | A |
|---|---|
| BC Break | no |
| Version | 2.16.2 |
Summary
Matching criteria in ManyToManyPersister (maybe other) doesn't work with "in".
Error is here:
| $whereClauses[] = sprintf('te.%s %s ?', $field, $operator); |
Current behavior
When using in the value is not in using "(:value)" but just :value
Error would be something like this:
or the right syntax to use near '? LIMIT 1' at line 1
How to reproduce
Do a matching request with a criteria with in:
$this->collection
->matching(
Criteria::create()
->where(
Criteria::expr()
->in(
'status',
[$value1, $value2]
)
)
)
->count();
Expected behavior
Query shoudl be generated properly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels