Open mikepmtl opened 9 years ago
Not really an example of and_where()
, is it?
It would probably better at "classes/database/usage.html#selecting", but an example using "IN" and passing an array is already given there.
That is where I was looking for an example. Seemed like the logical place for me to look when where('id', 'IN', '(1,2,3)') did not work.
In my case it was for a migration using DB::delete()
That part of the docs could use a bit of an overhaul, it's a bit silly to document individual query sub-classes which aren't really exposed to the developer.
Well above it in "where()" it says you can use logical operators and list which ones. But then it says (in a sense) to see and_where(). So that is why I thought it should go there. But I am simply trying to help the next guy. I'm good now that I know it takes an array.
Add example using a logic operator