-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
where clause in associated model #233
Comments
This functionality is already implemented in #214. Please clarify with a code example if everything does not work as expected ;-) |
@janmeier, what he asked has nothing to do with #214. Link.all({ where : { 'tag.name' : ['one', 'two', 'three'] }); What would result in a SQL something like this: SELECT * FROM link l
INNER JOIN tag t ON t.linkId = l.id
WHERE t.name IN ('one', 'two', 'three') It's exactly the same thing I want right now ;D |
yeah.. i ended up implementing my own orm (http://github.com/coderz/hater) which has it :P |
so we can just copy and paste your stuff :D easy 😆 |
I believe this is possible in the current master. Closing. |
More advanced stuff implemented in #1199 |
Let's say i have a Link model that
hasMany(Tag)
it'd be cool if i could find every Link where Tag.name is in ["one","two","three"]
i saw node-persist has something like that
if you have any idea on how i could implement that i'd be happy to do it myself and submit a pull request
The text was updated successfully, but these errors were encountered: