{"action":"reopened","issue":{"url":"https://api.github.com/repos/cfwheels/cfwheels/issues/567","labels_url":"https://api.github.com/repos/cfwheels/cfwheels/issues/567/labels{/name}","comments_url":"https://api.github.com/repos/cfwheels/cfwheels/issues/567/comments","events_url":"https://api.github.com/repos/cfwheels/cfwheels/issues/567/events","html_url":"https://github.com/cfwheels/cfwheels/issues/567","id":116821211,"number":567,"title":"findAll() with returnAs = \"structs\" not including alias columns","user":{"login":"kmd1970","id":5647963,"avatar_url":"https://avatars.githubusercontent.com/u/5647963?v=3","gravatar_id":"","url":"https://api.github.com/users/kmd1970","html_url":"https://github.com/kmd1970","followers_url":"https://api.github.com/users/kmd1970/followers","following_url":"https://api.github.com/users/kmd1970/following{/other_user}","gists_url":"https://api.github.com/users/kmd1970/gists{/gist_id}","starred_url":"https://api.github.com/users/kmd1970/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmd1970/subscriptions","organizations_url":"https://api.github.com/users/kmd1970/orgs","repos_url":"https://api.github.com/users/kmd1970/repos","events_url":"https://api.github.com/users/kmd1970/events{/privacy}","received_events_url":"https://api.github.com/users/kmd1970/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cfwheels/cfwheels/labels/invalid","name":"invalid","color":"000000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-13T18:19:00Z","updated_at":"2015-11-18T16:34:10Z","closed_at":null,"body":"These two findALL() calls are practically the same, however employees1 does not include the SQL Alias columns (ID, TEXT) in the returned array of structs. I would assume it should return all data you requested. \r\n\r\nAlias columns ID, TEXT not returned in array of structs.\r\n \r\n```html\r\n<cfset employees1 = model(\"Employee\").findAll(select=\"employee_number AS id, display_name AS text, phone,email,display_name,employee_number\", where=\"display_name LIKE '%#lcase(params.term)#%'\", returnAs=\"structs\")>\r\n```\r\nAlias columns ID, TEXT returned in query.\r\n```html\r\n<cfset employees2 = model(\"Employee\").findAll(select=\"employee_number AS id, display_name AS text, phone,email,display_name,employee_number\", where=\"display_name LIKE '%#lcase(params.term)#%'\")>  \r\n```"}}