{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/3515","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/3515/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3515/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/3515/events","html_url":"https://github.com/sequelize/sequelize/issues/3515","id":67797608,"number":3515,"title":"raw query result instances don't get the getter attributes","user":{"login":"neekey","id":499870,"avatar_url":"https://avatars.githubusercontent.com/u/499870?v=3","gravatar_id":"","url":"https://api.github.com/users/neekey","html_url":"https://github.com/neekey","followers_url":"https://api.github.com/users/neekey/followers","following_url":"https://api.github.com/users/neekey/following{/other_user}","gists_url":"https://api.github.com/users/neekey/gists{/gist_id}","starred_url":"https://api.github.com/users/neekey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neekey/subscriptions","organizations_url":"https://api.github.com/users/neekey/orgs","repos_url":"https://api.github.com/users/neekey/repos","events_url":"https://api.github.com/users/neekey/events{/privacy}","received_events_url":"https://api.github.com/users/neekey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-11T15:06:23Z","updated_at":"2015-04-12T13:07:23Z","closed_at":null,"body":"I have set some getter for my model like below:\r\n\r\n```js\r\ngetterMethods: {\r\n\r\n            typeName: function(){\r\n                var name = 'other';\r\n                switch( this.type ){\r\n                    case 'data':\r\n                        name = 'data app';\r\n                        break;\r\n                    case 'standard_data':\r\n                        name = 'app with standard data structures';\r\n                        break;\r\n                    case 'app':\r\n                        name = 'app that handles business';\r\n                        break;\r\n                    default:\r\n                        name = 'other';\r\n                        break;\r\n                }\r\n\r\n                return name;\r\n            },\r\n            ....\r\n```\r\n\r\nFor instances from the sequelize `findAll` method, I can access `typeName` via `instance.typeName`, but it fails when trying to access the instances from raw query:\r\n\r\n```js\r\nModel.sequelize.query( selectSQL, Model.app ).spread(function( apps ){\r\n    console.log( apps[0].typeName ); // --> undefined \r\n    return apps;\r\n}),\r\n```"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/92057526","html_url":"https://github.com/sequelize/sequelize/issues/3515#issuecomment-92057526","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/3515","id":92057526,"user":{"login":"neekey","id":499870,"avatar_url":"https://avatars.githubusercontent.com/u/499870?v=3","gravatar_id":"","url":"https://api.github.com/users/neekey","html_url":"https://github.com/neekey","followers_url":"https://api.github.com/users/neekey/followers","following_url":"https://api.github.com/users/neekey/following{/other_user}","gists_url":"https://api.github.com/users/neekey/gists{/gist_id}","starred_url":"https://api.github.com/users/neekey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neekey/subscriptions","organizations_url":"https://api.github.com/users/neekey/orgs","repos_url":"https://api.github.com/users/neekey/repos","events_url":"https://api.github.com/users/neekey/events{/privacy}","received_events_url":"https://api.github.com/users/neekey/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T13:07:23Z","updated_at":"2015-04-12T13:07:23Z","body":"@mickhansen as I put the `Model.app` to the second param of `query`, the result apps should be a set of instances of Model.app I guess. I will double check this by trying to access the `apps[0].values`... I will let you know the result."}}