{"action":"created","issue":{"url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/1205","repository_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage","labels_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/1205/labels{/name}","comments_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/1205/comments","events_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/1205/events","html_url":"https://github.com/samselikoff/ember-cli-mirage/issues/1205","id":270426863,"number":1205,"title":"autoCreateRelatedRecord","user":{"login":"caseywatts","id":273653,"avatar_url":"https://avatars1.githubusercontent.com/u/273653?v=4","gravatar_id":"","url":"https://api.github.com/users/caseywatts","html_url":"https://github.com/caseywatts","followers_url":"https://api.github.com/users/caseywatts/followers","following_url":"https://api.github.com/users/caseywatts/following{/other_user}","gists_url":"https://api.github.com/users/caseywatts/gists{/gist_id}","starred_url":"https://api.github.com/users/caseywatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseywatts/subscriptions","organizations_url":"https://api.github.com/users/caseywatts/orgs","repos_url":"https://api.github.com/users/caseywatts/repos","events_url":"https://api.github.com/users/caseywatts/events{/privacy}","received_events_url":"https://api.github.com/users/caseywatts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-01T19:40:46Z","updated_at":"2018-03-09T23:06:13Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"It took me a while of googling and asking around today to figure out how to have mirage auto-create relationships for me. I don't have to use `afterCreate`, and I don't have to do it manually everywhere.\r\n\r\nThe `association()` helper can do it! 🎉 \r\nIn my head I think of this helper as `autoCreateRelationshipIfNeeded()` or `autoCreateRelatedRecord` - I think that's its one purpose.\r\n\r\nWould it make sense to alias or rename `association` to something more specific, or does it do more than this one thing?"},"comment":{"url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/comments/371970836","html_url":"https://github.com/samselikoff/ember-cli-mirage/issues/1205#issuecomment-371970836","issue_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/1205","id":371970836,"user":{"login":"ro0gr","id":875361,"avatar_url":"https://avatars2.githubusercontent.com/u/875361?v=4","gravatar_id":"","url":"https://api.github.com/users/ro0gr","html_url":"https://github.com/ro0gr","followers_url":"https://api.github.com/users/ro0gr/followers","following_url":"https://api.github.com/users/ro0gr/following{/other_user}","gists_url":"https://api.github.com/users/ro0gr/gists{/gist_id}","starred_url":"https://api.github.com/users/ro0gr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ro0gr/subscriptions","organizations_url":"https://api.github.com/users/ro0gr/orgs","repos_url":"https://api.github.com/users/ro0gr/repos","events_url":"https://api.github.com/users/ro0gr/events{/privacy}","received_events_url":"https://api.github.com/users/ro0gr/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T23:06:13Z","updated_at":"2018-03-09T23:06:13Z","author_association":"CONTRIBUTOR","body":"I also didn't know about this \"association\" feature despite the fact I've carefully read the docs recently. Agree that docs update would be helpful.\r\n\r\nI like a declarative nature of the \"association\" name."}}
{"actor":{"display_login":"ro0gr"}}