fuel / docs

Fuel PHP Framework - Fuel v1.x documentation
http://fuelphp.com/docs
Other
168 stars 234 forks source link

Additional example for and_where() #698

Open mikepmtl opened 9 years ago

mikepmtl commented 9 years ago

Add example using a logic operator

WanWizard commented 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.

mikepmtl commented 9 years ago

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()

WanWizard commented 9 years ago

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.

mikepmtl commented 9 years ago

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.