{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/7137","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/7137/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/7137/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/7137/events","html_url":"https://github.com/cakephp/cakephp/issues/7137","id":97974909,"number":7137,"title":"Add a toRaw() function to a query result","user":{"login":"doshu","id":2188454,"avatar_url":"https://avatars.githubusercontent.com/u/2188454?v=3","gravatar_id":"","url":"https://api.github.com/users/doshu","html_url":"https://github.com/doshu","followers_url":"https://api.github.com/users/doshu/followers","following_url":"https://api.github.com/users/doshu/following{/other_user}","gists_url":"https://api.github.com/users/doshu/gists{/gist_id}","starred_url":"https://api.github.com/users/doshu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doshu/subscriptions","organizations_url":"https://api.github.com/users/doshu/orgs","repos_url":"https://api.github.com/users/doshu/repos","events_url":"https://api.github.com/users/doshu/events{/privacy}","received_events_url":"https://api.github.com/users/doshu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/Enhancement","name":"Enhancement","color":"bfe5bf"},{"url":"https://api.github.com/repos/cakephp/cakephp/labels/ORM","name":"ORM","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/31","html_url":"https://github.com/cakephp/cakephp/milestones/3.1.0","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/31/labels","id":919718,"number":31,"title":"3.1.0","description":"Backwards compatible with 3.0.x.\r\n\r\nSee the [Roadmap](https://github.com/cakephp/cakephp/wiki/3.1-Roadmap) for more information.","creator":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"open_issues":53,"closed_issues":109,"state":"open","created_at":"2015-01-02T15:38:07Z","updated_at":"2015-07-30T20:14:59Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":8,"created_at":"2015-07-29T16:28:16Z","updated_at":"2015-07-31T06:15:29Z","closed_at":null,"body":"when working with a very big query resultset, disable marshalling is not enough to improve performance.\r\ndisabling marshalling will not create a new entity but the fields like datetime will be always parsed.\r\n\r\nfor example calling toArray() on a big resultset with some datetime fields, will always parse all datetime fields to create a Time object. this is not always necessary.\r\n\r\nthis can be resolved create a toRaw method that return directly the result taken from the datasource layer (for example the result of PDOStatement::fetchAll)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/126578626","html_url":"https://github.com/cakephp/cakephp/issues/7137#issuecomment-126578626","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/7137","id":126578626,"user":{"login":"doshu","id":2188454,"avatar_url":"https://avatars.githubusercontent.com/u/2188454?v=3","gravatar_id":"","url":"https://api.github.com/users/doshu","html_url":"https://github.com/doshu","followers_url":"https://api.github.com/users/doshu/followers","following_url":"https://api.github.com/users/doshu/following{/other_user}","gists_url":"https://api.github.com/users/doshu/gists{/gist_id}","starred_url":"https://api.github.com/users/doshu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doshu/subscriptions","organizations_url":"https://api.github.com/users/doshu/orgs","repos_url":"https://api.github.com/users/doshu/repos","events_url":"https://api.github.com/users/doshu/events{/privacy}","received_events_url":"https://api.github.com/users/doshu/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T06:15:29Z","updated_at":"2015-07-31T06:15:29Z","body":"$query->castResults(false) should be for speed up query. enable hydration and disable object casting have no sense. In some cases could be usefull to use hydration with no object casting, but this is not the main goal of this proposal"}}