{"action":"created","comment":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/comments/178575209","pull_request_review_id":108652845,"id":178575209,"diff_hunk":"@@ -35,6 +35,25 @@ class StatementDecorator implements StatementInterface, Countable, IteratorAggre\n \n     use TypeConverterTrait;\n \n+    /**\n+     * Used to designate that numeric indexes be returned in a result when calling fetch methods\n+     *\n+     * @var string\n+     */\n+    const FETCH_TYPE_NUM = 'num';\n+    /**\n+     * Used to designate that associated array be returned in a result when calling fetch methods\n+     *\n+     * @var string\n+     */\n+    const FETCH_TYPE_ASSOC = 'assoc';\n+    /**\n+     * Used to designate that objects of \\stdClass be returned in a result when calling fetch methods\n+     *\n+     * @var string\n+     */\n+    const FETCH_TYPE_OBJ = 'obj';","path":"src/Database/Statement/StatementDecorator.php","position":21,"original_position":21,"commit_id":"f524dcb11756d379579a8dc6a7f9944a05f5e18f","original_commit_id":"f524dcb11756d379579a8dc6a7f9944a05f5e18f","user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars3.githubusercontent.com/u/37621?v=4","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},"body":"I like the other changes, but I’m unsure about this one.","created_at":"2018-04-02T15:57:24Z","updated_at":"2018-04-02T15:57:24Z","html_url":"https://github.com/cakephp/cakephp/pull/11886#discussion_r178575209","pull_request_url":"https://api.github.com/repos/cakephp/cakephp/pulls/11886","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/comments/178575209"},"html":{"href":"https://github.com/cakephp/cakephp/pull/11886#discussion_r178575209"},"pull_request":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/11886"}},"in_reply_to_id":178452645},"pull_request":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/11886","id":178697588,"html_url":"https://github.com/cakephp/cakephp/pull/11886","diff_url":"https://github.com/cakephp/cakephp/pull/11886.diff","patch_url":"https://github.com/cakephp/cakephp/pull/11886.patch","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/11886","number":11886,"state":"open","locked":false,"title":"Fetch methods 11795","user":{"login":"xaphalanx","id":41106,"avatar_url":"https://avatars0.githubusercontent.com/u/41106?v=4","gravatar_id":"","url":"https://api.github.com/users/xaphalanx","html_url":"https://github.com/xaphalanx","followers_url":"https://api.github.com/users/xaphalanx/followers","following_url":"https://api.github.com/users/xaphalanx/following{/other_user}","gists_url":"https://api.github.com/users/xaphalanx/gists{/gist_id}","starred_url":"https://api.github.com/users/xaphalanx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaphalanx/subscriptions","organizations_url":"https://api.github.com/users/xaphalanx/orgs","repos_url":"https://api.github.com/users/xaphalanx/repos","events_url":"https://api.github.com/users/xaphalanx/events{/privacy}","received_events_url":"https://api.github.com/users/xaphalanx/received_events","type":"User","site_admin":false},"body":"This adds the methods described in issue #11795\r\n\r\nI did not add fetchClass() because it would have required using setFetchMode() to map the class to the results and I think doing so would require some interface changes. This pull request uses existing structures and is BC.  \r\n\r\n","created_at":"2018-03-31T19:49:30Z","updated_at":"2018-04-02T15:57:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dbe6892bf87d297a09d06d2027cbb7b958e06cb7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":366710731,"url":"https://api.github.com/repos/cakephp/cakephp/labels/database","name":"database","color":"ffffff","default":false}],"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/140","html_url":"https://github.com/cakephp/cakephp/milestone/140","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/140/labels","id":2671072,"number":140,"title":"3.6.0","description":"New major features that are backwards compatible with 3.x. See the [roadmap](https://github.com/cakephp/cakephp/wiki/3.6-Roadmap) for more details.","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars3.githubusercontent.com/u/24086?v=4","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":124,"closed_issues":253,"state":"open","created_at":"2017-07-31T11:30:05Z","updated_at":"2018-04-02T02:03:24Z","due_on":"2018-04-14T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/cakephp/cakephp/pulls/11886/commits","review_comments_url":"https://api.github.com/repos/cakephp/cakephp/pulls/11886/comments","review_comment_url":"https://api.github.com/repos/cakephp/cakephp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/11886/comments","statuses_url":"https://api.github.com/repos/cakephp/cakephp/statuses/f524dcb11756d379579a8dc6a7f9944a05f5e18f","head":{"label":"xaphalanx:fetch-methods-11795","ref":"fetch-methods-11795","sha":"f524dcb11756d379579a8dc6a7f9944a05f5e18f","user":{"login":"xaphalanx","id":41106,"avatar_url":"https://avatars0.githubusercontent.com/u/41106?v=4","gravatar_id":"","url":"https://api.github.com/users/xaphalanx","html_url":"https://github.com/xaphalanx","followers_url":"https://api.github.com/users/xaphalanx/followers","following_url":"https://api.github.com/users/xaphalanx/following{/other_user}","gists_url":"https://api.github.com/users/xaphalanx/gists{/gist_id}","starred_url":"https://api.github.com/users/xaphalanx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaphalanx/subscriptions","organizations_url":"https://api.github.com/users/xaphalanx/orgs","repos_url":"https://api.github.com/users/xaphalanx/repos","events_url":"https://api.github.com/users/xaphalanx/events{/privacy}","received_events_url":"https://api.github.com/users/xaphalanx/received_events","type":"User","site_admin":false},"repo":{"id":120915518,"name":"cakephp","full_name":"xaphalanx/cakephp","owner":{"login":"xaphalanx","id":41106,"avatar_url":"https://avatars0.githubusercontent.com/u/41106?v=4","gravatar_id":"","url":"https://api.github.com/users/xaphalanx","html_url":"https://github.com/xaphalanx","followers_url":"https://api.github.com/users/xaphalanx/followers","following_url":"https://api.github.com/users/xaphalanx/following{/other_user}","gists_url":"https://api.github.com/users/xaphalanx/gists{/gist_id}","starred_url":"https://api.github.com/users/xaphalanx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaphalanx/subscriptions","organizations_url":"https://api.github.com/users/xaphalanx/orgs","repos_url":"https://api.github.com/users/xaphalanx/repos","events_url":"https://api.github.com/users/xaphalanx/events{/privacy}","received_events_url":"https://api.github.com/users/xaphalanx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xaphalanx/cakephp","description":"CakePHP: The Rapid Development Framework for PHP - Official Repository","fork":true,"url":"https://api.github.com/repos/xaphalanx/cakephp","forks_url":"https://api.github.com/repos/xaphalanx/cakephp/forks","keys_url":"https://api.github.com/repos/xaphalanx/cakephp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xaphalanx/cakephp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xaphalanx/cakephp/teams","hooks_url":"https://api.github.com/repos/xaphalanx/cakephp/hooks","issue_events_url":"https://api.github.com/repos/xaphalanx/cakephp/issues/events{/number}","events_url":"https://api.github.com/repos/xaphalanx/cakephp/events","assignees_url":"https://api.github.com/repos/xaphalanx/cakephp/assignees{/user}","branches_url":"https://api.github.com/repos/xaphalanx/cakephp/branches{/branch}","tags_url":"https://api.github.com/repos/xaphalanx/cakephp/tags","blobs_url":"https://api.github.com/repos/xaphalanx/cakephp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xaphalanx/cakephp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xaphalanx/cakephp/git/refs{/sha}","trees_url":"https://api.github.com/repos/xaphalanx/cakephp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xaphalanx/cakephp/statuses/{sha}","languages_url":"https://api.github.com/repos/xaphalanx/cakephp/languages","stargazers_url":"https://api.github.com/repos/xaphalanx/cakephp/stargazers","contributors_url":"https://api.github.com/repos/xaphalanx/cakephp/contributors","subscribers_url":"https://api.github.com/repos/xaphalanx/cakephp/subscribers","subscription_url":"https://api.github.com/repos/xaphalanx/cakephp/subscription","commits_url":"https://api.github.com/repos/xaphalanx/cakephp/commits{/sha}","git_commits_url":"https://api.github.com/repos/xaphalanx/cakephp/git/commits{/sha}","comments_url":"https://api.github.com/repos/xaphalanx/cakephp/comments{/number}","issue_comment_url":"https://api.github.com/repos/xaphalanx/cakephp/issues/comments{/number}","contents_url":"https://api.github.com/repos/xaphalanx/cakephp/contents/{+path}","compare_url":"https://api.github.com/repos/xaphalanx/cakephp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xaphalanx/cakephp/merges","archive_url":"https://api.github.com/repos/xaphalanx/cakephp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xaphalanx/cakephp/downloads","issues_url":"https://api.github.com/repos/xaphalanx/cakephp/issues{/number}","pulls_url":"https://api.github.com/repos/xaphalanx/cakephp/pulls{/number}","milestones_url":"https://api.github.com/repos/xaphalanx/cakephp/milestones{/number}","notifications_url":"https://api.github.com/repos/xaphalanx/cakephp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xaphalanx/cakephp/labels{/name}","releases_url":"https://api.github.com/repos/xaphalanx/cakephp/releases{/id}","deployments_url":"https://api.github.com/repos/xaphalanx/cakephp/deployments","created_at":"2018-02-09T14:29:55Z","updated_at":"2018-03-26T16:26:28Z","pushed_at":"2018-03-31T21:53:47Z","git_url":"git://github.com/xaphalanx/cakephp.git","ssh_url":"git@github.com:xaphalanx/cakephp.git","clone_url":"https://github.com/xaphalanx/cakephp.git","svn_url":"https://github.com/xaphalanx/cakephp","homepage":"http://cakephp.org","size":76503,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cakephp:3.next","ref":"3.next","sha":"65653021cfd832d4fb4c41163fe521206300fbb2","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars0.githubusercontent.com/u/23666?v=4","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":656494,"name":"cakephp","full_name":"cakephp/cakephp","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars0.githubusercontent.com/u/23666?v=4","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakephp/cakephp","description":"CakePHP: The Rapid Development Framework for PHP - Official Repository","fork":false,"url":"https://api.github.com/repos/cakephp/cakephp","forks_url":"https://api.github.com/repos/cakephp/cakephp/forks","keys_url":"https://api.github.com/repos/cakephp/cakephp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/cakephp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/cakephp/teams","hooks_url":"https://api.github.com/repos/cakephp/cakephp/hooks","issue_events_url":"https://api.github.com/repos/cakephp/cakephp/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/cakephp/events","assignees_url":"https://api.github.com/repos/cakephp/cakephp/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/cakephp/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/cakephp/tags","blobs_url":"https://api.github.com/repos/cakephp/cakephp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/cakephp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/cakephp/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/cakephp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/cakephp/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/cakephp/languages","stargazers_url":"https://api.github.com/repos/cakephp/cakephp/stargazers","contributors_url":"https://api.github.com/repos/cakephp/cakephp/contributors","subscribers_url":"https://api.github.com/repos/cakephp/cakephp/subscribers","subscription_url":"https://api.github.com/repos/cakephp/cakephp/subscription","commits_url":"https://api.github.com/repos/cakephp/cakephp/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/cakephp/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/cakephp/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/cakephp/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/cakephp/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/cakephp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/cakephp/merges","archive_url":"https://api.github.com/repos/cakephp/cakephp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/cakephp/downloads","issues_url":"https://api.github.com/repos/cakephp/cakephp/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/cakephp/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/cakephp/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/cakephp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/cakephp/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/cakephp/releases{/id}","deployments_url":"https://api.github.com/repos/cakephp/cakephp/deployments","created_at":"2010-05-08T14:38:22Z","updated_at":"2018-04-02T10:17:57Z","pushed_at":"2018-04-02T14:48:17Z","git_url":"git://github.com/cakephp/cakephp.git","ssh_url":"git@github.com:cakephp/cakephp.git","clone_url":"https://github.com/cakephp/cakephp.git","svn_url":"https://github.com/cakephp/cakephp","homepage":"http://cakephp.org","size":76607,"stargazers_count":7501,"watchers_count":7501,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3317,"mirror_url":null,"archived":false,"open_issues_count":215,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":3317,"open_issues":215,"watchers":7501,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/11886"},"html":{"href":"https://github.com/cakephp/cakephp/pull/11886"},"issue":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/11886"},"comments":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/11886/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/11886/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/11886/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/cakephp/statuses/f524dcb11756d379579a8dc6a7f9944a05f5e18f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"lorenzo"}}