{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/3476","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/3476/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3476/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/3476/events","html_url":"https://github.com/sequelize/sequelize/issues/3476","id":66690367,"number":3476,"title":"Add 'scope' to hasOne/belongsTo","user":{"login":"ackerdev","id":2708892,"avatar_url":"https://avatars.githubusercontent.com/u/2708892?v=3","gravatar_id":"","url":"https://api.github.com/users/ackerdev","html_url":"https://github.com/ackerdev","followers_url":"https://api.github.com/users/ackerdev/followers","following_url":"https://api.github.com/users/ackerdev/following{/other_user}","gists_url":"https://api.github.com/users/ackerdev/gists{/gist_id}","starred_url":"https://api.github.com/users/ackerdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ackerdev/subscriptions","organizations_url":"https://api.github.com/users/ackerdev/orgs","repos_url":"https://api.github.com/users/ackerdev/repos","events_url":"https://api.github.com/users/ackerdev/events{/privacy}","received_events_url":"https://api.github.com/users/ackerdev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sequelize/sequelize/labels/feature","name":"feature","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-06T19:49:33Z","updated_at":"2015-11-27T17:23:48Z","closed_at":null,"body":"hasMany and belongsToMany both support `scope` in the options object, it would be great to see this feature added to hasOne/belongsTo associations :smile:\r\n\r\nAlso, only belongsToMany's `scope` seems to be used in retrieving associations, but it'd be great to see this on the other associations as well."},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/160179347","html_url":"https://github.com/sequelize/sequelize/issues/3476#issuecomment-160179347","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/3476","id":160179347,"user":{"login":"mickhansen","id":699049,"avatar_url":"https://avatars.githubusercontent.com/u/699049?v=3","gravatar_id":"","url":"https://api.github.com/users/mickhansen","html_url":"https://github.com/mickhansen","followers_url":"https://api.github.com/users/mickhansen/followers","following_url":"https://api.github.com/users/mickhansen/following{/other_user}","gists_url":"https://api.github.com/users/mickhansen/gists{/gist_id}","starred_url":"https://api.github.com/users/mickhansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickhansen/subscriptions","organizations_url":"https://api.github.com/users/mickhansen/orgs","repos_url":"https://api.github.com/users/mickhansen/repos","events_url":"https://api.github.com/users/mickhansen/events{/privacy}","received_events_url":"https://api.github.com/users/mickhansen/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T17:23:48Z","updated_at":"2015-11-27T17:23:48Z","body":"What's the usecase exactly here @ackerdev? belongsTo and hasOne is 1:1 so there's not really anything to filter on with `scope`."}}