{"action":"closed","issue":{"url":"https://api.github.com/repos/js-data/js-data/issues/186","labels_url":"https://api.github.com/repos/js-data/js-data/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/js-data/js-data/issues/186/comments","events_url":"https://api.github.com/repos/js-data/js-data/issues/186/events","html_url":"https://github.com/js-data/js-data/issues/186","id":96857128,"number":186,"title":"Add relation setters for convenience","user":{"login":"jmdobry","id":1213510,"avatar_url":"https://avatars.githubusercontent.com/u/1213510?v=3","gravatar_id":"","url":"https://api.github.com/users/jmdobry","html_url":"https://github.com/jmdobry","followers_url":"https://api.github.com/users/jmdobry/followers","following_url":"https://api.github.com/users/jmdobry/following{/other_user}","gists_url":"https://api.github.com/users/jmdobry/gists{/gist_id}","starred_url":"https://api.github.com/users/jmdobry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmdobry/subscriptions","organizations_url":"https://api.github.com/users/jmdobry/orgs","repos_url":"https://api.github.com/users/jmdobry/repos","events_url":"https://api.github.com/users/jmdobry/events{/privacy}","received_events_url":"https://api.github.com/users/jmdobry/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/js-data/js-data/labels/feature","name":"feature","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"jmdobry","id":1213510,"avatar_url":"https://avatars.githubusercontent.com/u/1213510?v=3","gravatar_id":"","url":"https://api.github.com/users/jmdobry","html_url":"https://github.com/jmdobry","followers_url":"https://api.github.com/users/jmdobry/followers","following_url":"https://api.github.com/users/jmdobry/following{/other_user}","gists_url":"https://api.github.com/users/jmdobry/gists{/gist_id}","starred_url":"https://api.github.com/users/jmdobry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmdobry/subscriptions","organizations_url":"https://api.github.com/users/jmdobry/orgs","repos_url":"https://api.github.com/users/jmdobry/repos","events_url":"https://api.github.com/users/jmdobry/events{/privacy}","received_events_url":"https://api.github.com/users/jmdobry/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-07-23T16:51:55Z","updated_at":"2015-07-30T21:02:25Z","closed_at":"2015-07-30T21:02:25Z","body":"This would be so you could do:\r\n\r\n```javascript\r\nvar team = Team.inject({ id: 1 });\r\nvar player = Player.inject({ id: 99 });\r\nplayer.team = team;\r\nplayer; // { id: 1, teamId: 99 }\r\nplayer.team === team; // true\r\n```"}}