Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional example for and_where() #698

Open
wants to merge 1 commit into
base: 1.8/develop
Choose a base branch
from

Conversation

mikepmtl
Copy link
Contributor

@mikepmtl mikepmtl commented Sep 8, 2015

Add example using a logic operator

Add example using a logic operator
@WanWizard
Copy link
Member

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
Copy link
Contributor Author

mikepmtl commented Sep 8, 2015

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
Copy link
Member

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
Copy link
Contributor Author

mikepmtl commented Sep 8, 2015

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.

wata727 pushed a commit to wata727/fuel-docs that referenced this pull request Nov 17, 2015
classes/arr.htmlの本家修正分の反映と既存和訳の修正
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants