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

How can I use two tables for searching? #716

Open
jaycie opened this issue Jul 12, 2016 · 1 comment
Open

How can I use two tables for searching? #716

jaycie opened this issue Jul 12, 2016 · 1 comment

Comments

@jaycie
Copy link
Contributor

jaycie commented Jul 12, 2016

Just like mysql search,Can we use left join and so on queries search in two tables?

@mde
Copy link
Contributor

mde commented Jul 19, 2016

You could use raw SQL to search, but it sounds like what you want is to eager-load an association using includes with an all query in the ORM:

http://geddyjs.org/reference#models_all

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

2 participants