{"action":"closed","issue":{"url":"https://api.github.com/repos/emberjs/data/issues/1848","labels_url":"https://api.github.com/repos/emberjs/data/issues/1848/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/data/issues/1848/comments","events_url":"https://api.github.com/repos/emberjs/data/issues/1848/events","html_url":"https://github.com/emberjs/data/issues/1848","id":30767094,"number":1848,"title":"belongsTo fails with no object - needs validation","user":{"login":"ryanjm","id":90015,"avatar_url":"https://avatars.githubusercontent.com/u/90015?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanjm","html_url":"https://github.com/ryanjm","followers_url":"https://api.github.com/users/ryanjm/followers","following_url":"https://api.github.com/users/ryanjm/following{/other_user}","gists_url":"https://api.github.com/users/ryanjm/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanjm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanjm/subscriptions","organizations_url":"https://api.github.com/users/ryanjm/orgs","repos_url":"https://api.github.com/users/ryanjm/repos","events_url":"https://api.github.com/users/ryanjm/events{/privacy}","received_events_url":"https://api.github.com/users/ryanjm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-04-03T11:30:45Z","updated_at":"2015-06-02T17:51:28Z","closed_at":"2015-06-02T17:51:28Z","body":"I'm doing a belongs to and it fails when there is empty data in the api request. I'm overwriting the `extract` method but no matter how I change the payload it still fails (null, empty array, empty hash, no payload at all).\r\n\r\nIn the other `find[relationship]` calls there is a validation check. I feel like there should be an assertion inside the `_findBelongsTo` also ([code here](https://github.com/emberjs/data/blob/0a0f40850faa6cee2d4c66e70aed9cf7f26f3cdd/packages/ember-data/lib/system/store.js#L1716)).\r\n\r\nWhat is the correct way to handle no relationship?\r\n\r\nI think part of the problem is that it is really a `hasOne` so the ID doesn't exist on the original object (which I'm building the relationship off of) and I've made it async. It is doing a nested call in order to find the object."}}