We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9529c60 + bd11b9c commit 882e03cCopy full SHA for 882e03c
src/Query/Generator/SQL.php
@@ -261,11 +261,19 @@ protected function generateGroup(Query $query): string
261
/**
262
* Generate value for where ore field usage
263
*
264
- * @param float|int|string|null $value
+ * @param float|int|string|array|null $value
265
* @return string
266
*/
267
- private function generateValue(float|int|string|null $value): string
+ private function generateValue(float|int|string|null|array $value): string
268
{
269
+ if (is_array($value)) {
270
+ $values = [];
271
+ foreach ($value as $v) {
272
+ $values[] = $this->generateValue($v);
273
+ }
274
+ return "(" . implode(", ", $values) . ")";
275
276
+
277
if (is_int($value) || is_float($value)) {
278
return $value;
279
}
0 commit comments