{"action":"created","issue":{"url":"https://api.github.com/repos/mphasize/sails-generate-ember-blueprints/issues/51","labels_url":"https://api.github.com/repos/mphasize/sails-generate-ember-blueprints/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/mphasize/sails-generate-ember-blueprints/issues/51/comments","events_url":"https://api.github.com/repos/mphasize/sails-generate-ember-blueprints/issues/51/events","html_url":"https://github.com/mphasize/sails-generate-ember-blueprints/pull/51","id":122745992,"number":51,"title":"Model.toJSON promise support","user":{"login":"aars","id":129898,"avatar_url":"https://avatars.githubusercontent.com/u/129898?v=3","gravatar_id":"","url":"https://api.github.com/users/aars","html_url":"https://github.com/aars","followers_url":"https://api.github.com/users/aars/followers","following_url":"https://api.github.com/users/aars/following{/other_user}","gists_url":"https://api.github.com/users/aars/gists{/gist_id}","starred_url":"https://api.github.com/users/aars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aars/subscriptions","organizations_url":"https://api.github.com/users/aars/orgs","repos_url":"https://api.github.com/users/aars/repos","events_url":"https://api.github.com/users/aars/events{/privacy}","received_events_url":"https://api.github.com/users/aars/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-17T14:35:10Z","updated_at":"2015-12-18T11:01:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mphasize/sails-generate-ember-blueprints/pulls/51","html_url":"https://github.com/mphasize/sails-generate-ember-blueprints/pull/51","diff_url":"https://github.com/mphasize/sails-generate-ember-blueprints/pull/51.diff","patch_url":"https://github.com/mphasize/sails-generate-ember-blueprints/pull/51.patch"},"body":"I've got this as well. Not very pretty, and only applied on advanced templates. I'm leaving sails soon, so I wont be putting in much more effort. But I needed this to work around some Waterline restrictions (reverse one-way relation lookup).\r\n\r\nI think it's useful tough. If you want I'll apply it to the basic templates as well. But I'm still not sure if supporting promises here is a good thing. Of course supporting promises is a good thing, but it should be supported by sails. "},"comment":{"url":"https://api.github.com/repos/mphasize/sails-generate-ember-blueprints/issues/comments/165748929","html_url":"https://github.com/mphasize/sails-generate-ember-blueprints/pull/51#issuecomment-165748929","issue_url":"https://api.github.com/repos/mphasize/sails-generate-ember-blueprints/issues/51","id":165748929,"user":{"login":"aars","id":129898,"avatar_url":"https://avatars.githubusercontent.com/u/129898?v=3","gravatar_id":"","url":"https://api.github.com/users/aars","html_url":"https://github.com/aars","followers_url":"https://api.github.com/users/aars/followers","following_url":"https://api.github.com/users/aars/following{/other_user}","gists_url":"https://api.github.com/users/aars/gists{/gist_id}","starred_url":"https://api.github.com/users/aars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aars/subscriptions","organizations_url":"https://api.github.com/users/aars/orgs","repos_url":"https://api.github.com/users/aars/repos","events_url":"https://api.github.com/users/aars/events{/privacy}","received_events_url":"https://api.github.com/users/aars/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T11:01:41Z","updated_at":"2015-12-18T11:01:41Z","body":"Yeah.. this is not working as well as I hoped. Associations' promises are not resolved, which is an issue in the default `toObject` waterline method. I'm not sure if I want to still follow this path."}}