{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/4221","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/4221/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/4221/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/4221/events","html_url":"https://github.com/sequelize/sequelize/issues/4221","id":98144711,"number":4221,"title":"accessing renamed attributes","user":{"login":"PavelPolyakov","id":839290,"avatar_url":"https://avatars.githubusercontent.com/u/839290?v=3","gravatar_id":"","url":"https://api.github.com/users/PavelPolyakov","html_url":"https://github.com/PavelPolyakov","followers_url":"https://api.github.com/users/PavelPolyakov/followers","following_url":"https://api.github.com/users/PavelPolyakov/following{/other_user}","gists_url":"https://api.github.com/users/PavelPolyakov/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelPolyakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelPolyakov/subscriptions","organizations_url":"https://api.github.com/users/PavelPolyakov/orgs","repos_url":"https://api.github.com/users/PavelPolyakov/repos","events_url":"https://api.github.com/users/PavelPolyakov/events{/privacy}","received_events_url":"https://api.github.com/users/PavelPolyakov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-30T11:28:59Z","updated_at":"2015-07-30T13:17:29Z","closed_at":"2015-07-30T12:57:14Z","body":"Hi,\r\n\r\nIt that true, that when I do the next:\r\n```javascript\r\nvar application = yield Application.find({where:{uuid:'hbh7yg'},attributes:[['uuid','x']]});\r\n                    console.log(application.x);\r\n```\r\n\r\nI only am able to access the renamed attribute through ```.get()``` method, and I am not able to access it directly.\r\n\r\nI mean:\r\n```javascript\r\n   console.log(application.x); // undefined\r\n   console.log(application.toJSON().x); // hbh7yg\r\n   console.log(application.get('x')); // hbh7yg\r\n```\r\n\r\nHere http://sequelize.readthedocs.org/en/latest/api/model/index.html?highlight=find#findalloptions-promisearrayinstance it says:\r\n> and the second is the name you want the attribute to have in the returned instance\r\n\r\nThe version of the sequelize is 3.5.1.\r\n\r\nRegards,"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/126320095","html_url":"https://github.com/sequelize/sequelize/issues/4221#issuecomment-126320095","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/4221","id":126320095,"user":{"login":"PavelPolyakov","id":839290,"avatar_url":"https://avatars.githubusercontent.com/u/839290?v=3","gravatar_id":"","url":"https://api.github.com/users/PavelPolyakov","html_url":"https://github.com/PavelPolyakov","followers_url":"https://api.github.com/users/PavelPolyakov/followers","following_url":"https://api.github.com/users/PavelPolyakov/following{/other_user}","gists_url":"https://api.github.com/users/PavelPolyakov/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelPolyakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelPolyakov/subscriptions","organizations_url":"https://api.github.com/users/PavelPolyakov/orgs","repos_url":"https://api.github.com/users/PavelPolyakov/repos","events_url":"https://api.github.com/users/PavelPolyakov/events{/privacy}","received_events_url":"https://api.github.com/users/PavelPolyakov/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T13:17:29Z","updated_at":"2015-07-30T13:17:29Z","body":"Thanks"}}