{"action":"reopened","issue":{"url":"https://api.github.com/repos/emberjs/data/issues/3581","labels_url":"https://api.github.com/repos/emberjs/data/issues/3581/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/data/issues/3581/comments","events_url":"https://api.github.com/repos/emberjs/data/issues/3581/events","html_url":"https://github.com/emberjs/data/issues/3581","id":97108624,"number":3581,"title":"Possible bug with ember$data$lib$system$store$$deserializeRecordId","user":{"login":"villeneuve-michael","id":7171203,"avatar_url":"https://avatars.githubusercontent.com/u/7171203?v=3","gravatar_id":"","url":"https://api.github.com/users/villeneuve-michael","html_url":"https://github.com/villeneuve-michael","followers_url":"https://api.github.com/users/villeneuve-michael/followers","following_url":"https://api.github.com/users/villeneuve-michael/following{/other_user}","gists_url":"https://api.github.com/users/villeneuve-michael/gists{/gist_id}","starred_url":"https://api.github.com/users/villeneuve-michael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/villeneuve-michael/subscriptions","organizations_url":"https://api.github.com/users/villeneuve-michael/orgs","repos_url":"https://api.github.com/users/villeneuve-michael/repos","events_url":"https://api.github.com/users/villeneuve-michael/events{/privacy}","received_events_url":"https://api.github.com/users/villeneuve-michael/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-24T18:21:48Z","updated_at":"2015-07-24T18:44:29Z","closed_at":null,"body":"I upgrade this week to the latest version of ember/ember-data/ember-cli from a version that was like 9 months old ( I beleive it was 1.0.7beta). Needless to say it was a lot of work! \r\n\r\nAnyway, I had a trouble unserializing a pretty big response containing lots of embedded record (it's just too big for me to paste it, but the JSON was totally standard). I was receiving the following error :\r\n\r\n```javascript\r\nError while processing route: catalogue.produits Assertion Failed: Passing classes to store methods has been removed. Please pass a dasherized string instead of undefined Error: Assertion Failed: Passing classes to store methods has been removed. Please pass a dasherized string instead of undefined\r\n    at new Error (native)\r\n    at Error.EmberError (http://localhost:4200/assets/vendor.js:24565:21)\r\n    at Object._emberMetalCore.default.assert (http://localhost:4200/assets/vendor.js:14754:13)\r\n    at ember$data$lib$system$store$$Service.extend.modelFor (http://localhost:4200/assets/vendor.js:79928:15)\r\n    at ember$data$lib$system$store$$Service.extend._internalModelForId (http://localhost:4200/assets/vendor.js:79232:30)\r\n    at ember$data$lib$system$store$$deserializeRecordId (http://localhost:4200/assets/vendor.js:80460:20)\r\n    at http://localhost:4200/assets/vendor.js:80470:16\r\n    at Array.map (native)\r\n    at ember$data$lib$system$store$$deserializeRecordIds (http://localhost:4200/assets/vendor.js:80469:47)\r\n    at http://localhost:4200/assets/vendor.js:80444:44\r\n```\r\nI digged threw the stack and found out that ember$data$lib$system$store$$deserializeRecordId was sending id.type to _internalModelForId and that it was undefined. My object was valid, but did not have \"type\". I look at the other parameters and found that \"relationship\" had access to the type and changing the parameter value fixed the possible bug. \r\n\r\n\r\n```javascript\r\n    function ember$data$lib$system$store$$deserializeRecordId(store, key, relationship, id) {\r\n      if (ember$data$lib$system$store$$isNone(id)) {\r\n        return;\r\n      }\r\n\r\n      Ember.assert(\"A \" + relationship.parentType + \" record was pushed into the store with the value of \" + key + \" being \" + Ember.inspect(id) + \", but \" + key + \" is a belongsTo relationship so the value must not be an array. You should probably check your data payload or serializer.\", !Ember.isArray(id));\r\n\r\n      //TODO:Better asserts\r\n     // return store._internalModelForId(id.type, id.id); Current way\r\n     return store._internalModelForId(relationship.type, id.id); My way\r\n    }   \r\n```\r\n\r\nI have never submitted a pull request and I don't really feel confident enough to contribute (yet!). I'm sure there must have been a reason why it was this way.\r\n\r\nThanks alot for y'alls time. Ember is a kick ass project."}}