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

Find Vs FindAll #49

Closed
leebrooks0 opened this issue Jan 5, 2014 · 2 comments
Closed

Find Vs FindAll #49

leebrooks0 opened this issue Jan 5, 2014 · 2 comments

Comments

@leebrooks0
Copy link
Contributor

It would be nice if a FindAll method is supported.
Find would find 1 row (limit 1),
FindAll would find all rows.

Currently using Find for both single and multiple results makes for code that is less clear in purpose than it could be

@jinzhu
Copy link
Member

jinzhu commented Jan 6, 2014

Are you looking for method First? btw, Find would NOT add limit 1.

@jinzhu jinzhu closed this as completed Jan 6, 2014
@wojons
Copy link

wojons commented Jan 20, 2015

For some reason everytime i use Find i get a LIMIT 1 added to the query some how

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

No branches or pull requests

3 participants