File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -360,6 +360,20 @@ public function whereListContains(string $column, $value): self
360
360
return $ this ;
361
361
}
362
362
363
+ /**
364
+ * Where the comma separated list column contains NOT the given value or NONE of the given values.
365
+ *
366
+ * @param string $column Column with comma separated list
367
+ * @param string|int|int[] $value Single value (string or int) or array of values (ints only)
368
+ * @return $this
369
+ */
370
+ public function whereNotListContains (string $ column , $ value ): self
371
+ {
372
+ $ this ->where [] = 'NOT ' . $ this ->buildListContains (self ::PARAM_WHERE , $ column , $ value );
373
+
374
+ return $ this ;
375
+ }
376
+
363
377
/**
364
378
* @param array<string, int|string> $params
365
379
* @return $this
@@ -507,6 +521,20 @@ public function havingListContains(string $column, $value): self
507
521
return $ this ;
508
522
}
509
523
524
+ /**
525
+ * Where the comma separated list column contains NOT the given value or NONE of the given values.
526
+ *
527
+ * @param string $column Column with comma separated list
528
+ * @param string|int|int[] $value Single value (string or int) or array of values (ints only)
529
+ * @return $this
530
+ */
531
+ public function havingNotListContains (string $ column , $ value ): self
532
+ {
533
+ $ this ->having [] = 'NOT ' . $ this ->buildListContains (self ::PARAM_HAVING , $ column , $ value );
534
+
535
+ return $ this ;
536
+ }
537
+
510
538
/**
511
539
* @param array<string, int|string> $params
512
540
* @return $this
You can’t perform that action at this time.
0 commit comments