{"action":"opened","issue":{"url":"https://api.github.com/repos/isabo/onfire/issues/33","labels_url":"https://api.github.com/repos/isabo/onfire/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/isabo/onfire/issues/33/comments","events_url":"https://api.github.com/repos/isabo/onfire/issues/33/events","html_url":"https://github.com/isabo/onfire/issues/33","id":120720549,"number":33,"title":"Easier new model creation","user":{"login":"isabo","id":70673,"avatar_url":"https://avatars.githubusercontent.com/u/70673?v=3","gravatar_id":"","url":"https://api.github.com/users/isabo","html_url":"https://github.com/isabo","followers_url":"https://api.github.com/users/isabo/followers","following_url":"https://api.github.com/users/isabo/following{/other_user}","gists_url":"https://api.github.com/users/isabo/gists{/gist_id}","starred_url":"https://api.github.com/users/isabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isabo/subscriptions","organizations_url":"https://api.github.com/users/isabo/orgs","repos_url":"https://api.github.com/users/isabo/repos","events_url":"https://api.github.com/users/isabo/events{/privacy}","received_events_url":"https://api.github.com/users/isabo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-07T08:08:30Z","updated_at":"2015-12-07T08:08:30Z","closed_at":null,"body":"In order to create a new model without using a parent collection, it is currently necessary to perform:\r\n```js\r\nvar id = parentRef.generateId();\r\nvar myModel = new MyModel(parentRef.child(id));\r\n```\r\n\r\nInstead, provide a static method on Model:\r\n```js\r\nvar myModel = MyModel.create(parentRef);\r\n```\r\n\r\nOr provide a generateChildRef on Ref:\r\n```js\r\nvar myModel = new MyModel(parentRef.generateChildRef());\r\n```"}}