{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/waterline/issues/988","labels_url":"https://api.github.com/repos/balderdashy/waterline/issues/988/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/waterline/issues/988/comments","events_url":"https://api.github.com/repos/balderdashy/waterline/issues/988/events","html_url":"https://github.com/balderdashy/waterline/issues/988","id":72968875,"number":988,"title":"Feature Request: add conditions to associations","user":{"login":"atiertant","id":6105084,"avatar_url":"https://avatars.githubusercontent.com/u/6105084?v=3","gravatar_id":"","url":"https://api.github.com/users/atiertant","html_url":"https://github.com/atiertant","followers_url":"https://api.github.com/users/atiertant/followers","following_url":"https://api.github.com/users/atiertant/following{/other_user}","gists_url":"https://api.github.com/users/atiertant/gists{/gist_id}","starred_url":"https://api.github.com/users/atiertant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atiertant/subscriptions","organizations_url":"https://api.github.com/users/atiertant/orgs","repos_url":"https://api.github.com/users/atiertant/repos","events_url":"https://api.github.com/users/atiertant/events{/privacy}","received_events_url":"https://api.github.com/users/atiertant/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/balderdashy/waterline/labels/feature","name":"feature","color":"207de5"},{"url":"https://api.github.com/repos/balderdashy/waterline/labels/needs%20community%20feedback","name":"needs community feedback","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-04T09:18:19Z","updated_at":"2015-05-04T09:40:20Z","closed_at":null,"body":"hi, i would like to add conditions to associations like this :\r\n\r\n    var User = Waterline.Collection.extend({\r\n      identity: 'user',\r\n      connection: 'local-postgresql',\r\n      attributes: {\r\n        firstName: 'string',\r\n        lastName: 'string',\r\n        dog: {\r\n          collection: 'pet',\r\n          via: 'owners',\r\n          conditions: {\r\n            legs: 4 \r\n          },\r\n          dominant: true\r\n        }\r\n      }\r\n    });\r\n\r\nthe association conditions whould be add to populate's one."},"comment":{"url":"https://api.github.com/repos/balderdashy/waterline/issues/comments/98652408","html_url":"https://github.com/balderdashy/waterline/issues/988#issuecomment-98652408","issue_url":"https://api.github.com/repos/balderdashy/waterline/issues/988","id":98652408,"user":{"login":"dmarcelino","id":1280446,"avatar_url":"https://avatars.githubusercontent.com/u/1280446?v=3","gravatar_id":"","url":"https://api.github.com/users/dmarcelino","html_url":"https://github.com/dmarcelino","followers_url":"https://api.github.com/users/dmarcelino/followers","following_url":"https://api.github.com/users/dmarcelino/following{/other_user}","gists_url":"https://api.github.com/users/dmarcelino/gists{/gist_id}","starred_url":"https://api.github.com/users/dmarcelino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmarcelino/subscriptions","organizations_url":"https://api.github.com/users/dmarcelino/orgs","repos_url":"https://api.github.com/users/dmarcelino/repos","events_url":"https://api.github.com/users/dmarcelino/events{/privacy}","received_events_url":"https://api.github.com/users/dmarcelino/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T09:40:20Z","updated_at":"2015-05-04T09:40:20Z","body":"Sounds good! :+1: \r\n\r\nIs the choice of keyword `conditions` based on some other ORM?"}}