{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/831","labels_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/831/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/831/comments","events_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/831/events","html_url":"https://github.com/tgriesser/bookshelf/issues/831","id":95068665,"number":831,"title":"Allow specifying relations by obect in `constructor`/`forge`.","user":{"login":"rhys-vdw","id":822105,"avatar_url":"https://avatars.githubusercontent.com/u/822105?v=3","gravatar_id":"","url":"https://api.github.com/users/rhys-vdw","html_url":"https://github.com/rhys-vdw","followers_url":"https://api.github.com/users/rhys-vdw/followers","following_url":"https://api.github.com/users/rhys-vdw/following{/other_user}","gists_url":"https://api.github.com/users/rhys-vdw/gists{/gist_id}","starred_url":"https://api.github.com/users/rhys-vdw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhys-vdw/subscriptions","organizations_url":"https://api.github.com/users/rhys-vdw/orgs","repos_url":"https://api.github.com/users/rhys-vdw/repos","events_url":"https://api.github.com/users/rhys-vdw/events{/privacy}","received_events_url":"https://api.github.com/users/rhys-vdw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tgriesser/bookshelf/labels/feature%20request","name":"feature request","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-14T23:49:30Z","updated_at":"2015-07-14T23:51:17Z","closed_at":null,"body":"As attempted by @nareshbhatia in #830.\r\n\r\n```js\r\nvar resource = new Resource({\r\n    uid: uid,\r\n    type: 'org'\r\n});\r\n\r\nreturn resource.save()\r\n    .then(function(resource) {\r\n        var org = new Org({\r\n            uid: uid,\r\n            name: orgData.name,\r\n            resource: resource\r\n        });\r\n\r\n        return org.save();\r\n    });\r\n```"},"comment":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/comments/121430690","html_url":"https://github.com/tgriesser/bookshelf/issues/831#issuecomment-121430690","issue_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/831","id":121430690,"user":{"login":"rhys-vdw","id":822105,"avatar_url":"https://avatars.githubusercontent.com/u/822105?v=3","gravatar_id":"","url":"https://api.github.com/users/rhys-vdw","html_url":"https://github.com/rhys-vdw","followers_url":"https://api.github.com/users/rhys-vdw/followers","following_url":"https://api.github.com/users/rhys-vdw/following{/other_user}","gists_url":"https://api.github.com/users/rhys-vdw/gists{/gist_id}","starred_url":"https://api.github.com/users/rhys-vdw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhys-vdw/subscriptions","organizations_url":"https://api.github.com/users/rhys-vdw/orgs","repos_url":"https://api.github.com/users/rhys-vdw/repos","events_url":"https://api.github.com/users/rhys-vdw/events{/privacy}","received_events_url":"https://api.github.com/users/rhys-vdw/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T23:51:17Z","updated_at":"2015-07-14T23:51:17Z","body":"Consider implications for `set`."}}