{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/data/issues/1913","labels_url":"https://api.github.com/repos/emberjs/data/issues/1913/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/data/issues/1913/comments","events_url":"https://api.github.com/repos/emberjs/data/issues/1913/events","html_url":"https://github.com/emberjs/data/issues/1913","id":32699233,"number":1913,"title":"Model.reload does not refetch linked async relationships.","user":{"login":"bmac","id":54056,"avatar_url":"https://avatars.githubusercontent.com/u/54056?v=3","gravatar_id":"","url":"https://api.github.com/users/bmac","html_url":"https://github.com/bmac","followers_url":"https://api.github.com/users/bmac/followers","following_url":"https://api.github.com/users/bmac/following{/other_user}","gists_url":"https://api.github.com/users/bmac/gists{/gist_id}","starred_url":"https://api.github.com/users/bmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmac/subscriptions","organizations_url":"https://api.github.com/users/bmac/orgs","repos_url":"https://api.github.com/users/bmac/repos","events_url":"https://api.github.com/users/bmac/events{/privacy}","received_events_url":"https://api.github.com/users/bmac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2014-05-02T15:06:29Z","updated_at":"2015-10-01T16:32:41Z","closed_at":null,"body":"If I have a record with an async hasMany relationship for example the `events` property on the User model defined in the code below.\r\n```js\r\nApp.User = DS.Model.extend({\r\n  name: DS.attr('string'),\r\n  events: DS.hasMany('event', { async: true })\r\n});\r\n\r\nApp.Event = DS.Model.extend({\r\n  title: DS.attr('string'),\r\n  date: DS.attr('date')\r\n});\r\n```\r\nAnd my server returns a payload that contains a link to the endpoint containing the list of events associated with this user.\r\n```js\r\n{\r\n  id: 1,\r\n  name: 'user1',\r\n  links: {\r\n    events: '/user/1/events'\r\n  }\r\n}\r\n```\r\n\r\nWhen I call `userModel.reload()` the list of events for this user is not re-requested.\r\n\r\nI have put together a jsbin to demo my problem. In this jsbin the \"Update Backend and Reload\" button changes the state of the user record on my backend and reloads the user model. I had expected this to also re-request the list of events from the '/user/1/events' resource. The \"Reset Relationships\" is a hacky way to reset the events relation ship and causes the list of events to be re-requested. \r\nhttp://emberjs.jsbin.com/bemaxaqa/1/edit\r\n\r\nI would like to get confirmation if this is a valid bug or if my assumption here is off base. Thanks."},"comment":{"url":"https://api.github.com/repos/emberjs/data/issues/comments/144780600","html_url":"https://github.com/emberjs/data/issues/1913#issuecomment-144780600","issue_url":"https://api.github.com/repos/emberjs/data/issues/1913","id":144780600,"user":{"login":"jagthedrummer","id":58702,"avatar_url":"https://avatars.githubusercontent.com/u/58702?v=3","gravatar_id":"","url":"https://api.github.com/users/jagthedrummer","html_url":"https://github.com/jagthedrummer","followers_url":"https://api.github.com/users/jagthedrummer/followers","following_url":"https://api.github.com/users/jagthedrummer/following{/other_user}","gists_url":"https://api.github.com/users/jagthedrummer/gists{/gist_id}","starred_url":"https://api.github.com/users/jagthedrummer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagthedrummer/subscriptions","organizations_url":"https://api.github.com/users/jagthedrummer/orgs","repos_url":"https://api.github.com/users/jagthedrummer/repos","events_url":"https://api.github.com/users/jagthedrummer/events{/privacy}","received_events_url":"https://api.github.com/users/jagthedrummer/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T16:32:41Z","updated_at":"2015-10-01T16:32:41Z","body":"+1 for `reloadTree()` or some other method to say \"reload every single thing Ember knows about this model, including all relationships\"."}}