{"action":"closed","issue":{"url":"https://api.github.com/repos/firebase/emberfire/issues/232","labels_url":"https://api.github.com/repos/firebase/emberfire/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/firebase/emberfire/issues/232/comments","events_url":"https://api.github.com/repos/firebase/emberfire/issues/232/events","html_url":"https://github.com/firebase/emberfire/issues/232","id":65254967,"number":232,"title":"How are async belongsTo/hasMany relationships specified?","user":{"login":"molligan","id":5093716,"avatar_url":"https://avatars.githubusercontent.com/u/5093716?v=3","gravatar_id":"","url":"https://api.github.com/users/molligan","html_url":"https://github.com/molligan","followers_url":"https://api.github.com/users/molligan/followers","following_url":"https://api.github.com/users/molligan/following{/other_user}","gists_url":"https://api.github.com/users/molligan/gists{/gist_id}","starred_url":"https://api.github.com/users/molligan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molligan/subscriptions","organizations_url":"https://api.github.com/users/molligan/orgs","repos_url":"https://api.github.com/users/molligan/repos","events_url":"https://api.github.com/users/molligan/events{/privacy}","received_events_url":"https://api.github.com/users/molligan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-30T16:58:34Z","updated_at":"2015-03-30T22:50:13Z","closed_at":"2015-03-30T22:50:13Z","body":"I am very new at Ember/ED/EmberFire so apologies if this is a trivial question. I am able to save records to Firebase but I am unable to specify relationships to those records in my controller. I am using \r\n```\r\nDEBUG: Ember      : 1.10.0\r\nDEBUG: Ember Data : 1.0.0-beta.12\r\nDEBUG: Firebase   : 2.2.3\r\nDEBUG: EmberFire  : 1.4.3\r\nDEBUG: jQuery     : 1.11.2\r\n```\r\n I have a model as such:\r\n```\r\nvar Patient = DS.Model.extend({\r\n\tlastName: DS.attr('string'),\r\n\tfirstName: DS.attr('string'),\r\n\tencounters: DS.hasMany('encounter', {async: true})\r\n});\r\n```\r\n```\r\nvar Encounter = DS.Model.extend({\r\n\tdateOfEncounter: DS.attr('string'),\r\n\tpatient: DS.belongsTo('patient', {async: true})\r\n});\r\n```\r\n\r\nI am simply trying to specify the ```patient``` that my newly created ```encounter``` object is associated with. This is my controller:\r\n\r\n```\r\nactions: {\r\n\t\tregisterEncounter: function() {\r\n\t\t\t\tvar newEncounter = this.store.createRecord('encounter', {\r\n\t\t\t\tdateOfEncounter: this.get('dateOfEncounter'),\r\n\t\t\t\tpatient: this.store.find('patient', '-Jl8u8Tph_w4PMAXb9H_')\t\t\t\r\n\t\t\t});\r\n\r\n\t\t\tnewEncounter.save();\r\n\r\n\t\t\tthis.setProperties({\r\n\t\t\t\tdateOfEncounter: ''\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n```\r\n\r\nI can successfully create the ```encounter``` record in Firebase, but there is no associated ```patient``` property. All I get is\r\n![problem](https://cloud.githubusercontent.com/assets/5093716/6901579/3bb055ac-d6dc-11e4-8c02-e578b4568d79.jpg)\r\n\r\nAny help would be really appreciated. \r\n\r\n\r\n"}}