{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/3807","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/3807/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3807/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/3807/events","html_url":"https://github.com/sequelize/sequelize/issues/3807","id":81287418,"number":3807,"title":"Eager loading associations when calling create() or save()","user":{"login":"basco-johnkevin","id":2178576,"avatar_url":"https://avatars.githubusercontent.com/u/2178576?v=3","gravatar_id":"","url":"https://api.github.com/users/basco-johnkevin","html_url":"https://github.com/basco-johnkevin","followers_url":"https://api.github.com/users/basco-johnkevin/followers","following_url":"https://api.github.com/users/basco-johnkevin/following{/other_user}","gists_url":"https://api.github.com/users/basco-johnkevin/gists{/gist_id}","starred_url":"https://api.github.com/users/basco-johnkevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basco-johnkevin/subscriptions","organizations_url":"https://api.github.com/users/basco-johnkevin/orgs","repos_url":"https://api.github.com/users/basco-johnkevin/repos","events_url":"https://api.github.com/users/basco-johnkevin/events{/privacy}","received_events_url":"https://api.github.com/users/basco-johnkevin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-27T05:35:06Z","updated_at":"2015-06-16T05:46:02Z","closed_at":null,"body":"Let's say I have a Customer model that belongs to a User.\r\n\r\nI saw this on the documentation for create method:\r\n```\r\n[options.include]\tArray\tan array of include options - Used to build prefetched/included model instances\r\n```\r\nSource - http://docs.sequelizejs.com/en/latest/api/model/#createvalues-options-promiseinstance\r\n\r\nBut when I tried it, its not eager loading the associated User.\r\n```\r\nComment.create({\r\n  body: inputs.body,\r\n  UserId: inputs.userId,\r\n}, {\r\n  include: [User]\r\n}).then(function(comment) {\r\n  // comment.User is undefined\r\n});\r\n```\r\n\r\nis this a bug? Or I misunderstood the use of `options.include` for the create method?\r\n"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/112302878","html_url":"https://github.com/sequelize/sequelize/issues/3807#issuecomment-112302878","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/3807","id":112302878,"user":{"login":"FoxhoundNULL","id":2308736,"avatar_url":"https://avatars.githubusercontent.com/u/2308736?v=3","gravatar_id":"","url":"https://api.github.com/users/FoxhoundNULL","html_url":"https://github.com/FoxhoundNULL","followers_url":"https://api.github.com/users/FoxhoundNULL/followers","following_url":"https://api.github.com/users/FoxhoundNULL/following{/other_user}","gists_url":"https://api.github.com/users/FoxhoundNULL/gists{/gist_id}","starred_url":"https://api.github.com/users/FoxhoundNULL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FoxhoundNULL/subscriptions","organizations_url":"https://api.github.com/users/FoxhoundNULL/orgs","repos_url":"https://api.github.com/users/FoxhoundNULL/repos","events_url":"https://api.github.com/users/FoxhoundNULL/events{/privacy}","received_events_url":"https://api.github.com/users/FoxhoundNULL/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T05:46:02Z","updated_at":"2015-06-16T05:46:02Z","body":"+1, would love this feature."}}