{"action":"opened","issue":{"url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/537","labels_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/537/comments","events_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/537/events","html_url":"https://github.com/samselikoff/ember-cli-mirage/issues/537","id":129772937,"number":537,"title":"[0.2.0-beta.3] Relationships get created in the schema, but not the application (serializer / JSONAPI problem?)","user":{"login":"promisedlandt","id":557201,"avatar_url":"https://avatars.githubusercontent.com/u/557201?v=3","gravatar_id":"","url":"https://api.github.com/users/promisedlandt","html_url":"https://github.com/promisedlandt","followers_url":"https://api.github.com/users/promisedlandt/followers","following_url":"https://api.github.com/users/promisedlandt/following{/other_user}","gists_url":"https://api.github.com/users/promisedlandt/gists{/gist_id}","starred_url":"https://api.github.com/users/promisedlandt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/promisedlandt/subscriptions","organizations_url":"https://api.github.com/users/promisedlandt/orgs","repos_url":"https://api.github.com/users/promisedlandt/repos","events_url":"https://api.github.com/users/promisedlandt/events{/privacy}","received_events_url":"https://api.github.com/users/promisedlandt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-29T13:59:06Z","updated_at":"2016-01-29T13:59:06Z","closed_at":null,"body":"used versions:\r\nember 2.3.0\r\nember-data: 2.3.3\r\nember-cli: 1.13.15\r\nember-cli-mirage: 0.2.0-beta.3\r\n\r\nThis is a bit of a strange issue, and I'm not sure how I can give you a test case to reproduce, but here goes:\r\n\r\nI'm using Mirage to create Eras, which have many Nations.  \r\nThat appears to work fine, if I put a debugger breakpoint in my route handler I can see the eras, and each era has their created nations, exactly as expected.  \r\nI can also see in the Ember Inspector that  the models are indeed created in the ember application.\r\n\r\nHowever, the relationship between the models appears to have been lost, and the list of the nations on the era page is empty.  \r\nI can't 100% confirm this since I haven't found how to resolve the belongsTo or hasMany promises in the Ember Inspector.\r\n\r\nMy best guess is that there's a problem with the JSONAPI serializer, so the models do get created correctly, but the relationship doesn't. That would kind of make sense since the JSON format in the documentation does not match the JSON my application generates, regardless of `embed` setting.\r\n\r\nIf I turn off Mirage in development and hit my application, everything works as expected.\r\n\r\nThis happens both in the acceptance test as well as in manual development with the default scenario.\r\n\r\nDo you have any ideas? If not, I'll try to upload the Ember application and see if it runs without the backend."}}