ouzo
ouzo copied to clipboard
[ORM] All::of and Restrictions::any and Restrictions::all
Provide an example.
User::where([
'registration_date' => Restrictions::any(Restrictions::graterThan($from), Restrictions::lessThan($to))
]);
results in 'OR'.
We need something like:
User::where([
'registration_date' => Restrictions::all(Restrictions::graterThan($from), Restrictions::lessThan($to))
]);
Restrictions::any will return a composite restriction.