Skip to content
Snippets Groups Projects
Commit 3ddc68b0 authored by Peter Rotich's avatar Peter Rotich
Browse files

ORM: Add "__in" operator to evaluate

parent 72bc8f88
No related branches found
No related tags found
No related merge requests found
......@@ -2282,6 +2282,7 @@ class SqlCompiler {
'gte' => function($a, $b) { return $a >= $b; },
'lt' => function($a, $b) { return $a < $b; },
'lte' => function($a, $b) { return $a <= $b; },
'in' => function($a, $b) { return in_array($a, is_array($b) ? $b : array($b)); },
'contains' => function($a, $b) { return stripos($a, $b) !== false; },
'startswith' => function($a, $b) { return stripos($a, $b) === 0; },
'endswith' => function($a, $b) { return iEndsWith($a, $b); },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment