{"action":"created","comment":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/comments/188802903","pull_request_review_id":120855896,"id":188802903,"diff_hunk":"@@ -60,6 +60,16 @@ protected function _literalArgumentFunction($name, $expression, $types = [], $re\n         return $this->_build($name, $expression, $types, $return);\n     }\n \n+    /**\n+     * Returns a FunctionExpression representing a call to SQL RAND function.\n+     *\n+     * @return \\Cake\\Database\\Expression\\FunctionExpression\n+     */\n+    public function rand()","path":"src/Database/FunctionsBuilder.php","position":9,"original_position":9,"commit_id":"102ed1a644a0fe39f187549782867be46becd70a","original_commit_id":"102ed1a644a0fe39f187549782867be46becd70a","user":{"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},"body":"Fair enough.","created_at":"2018-05-16T23:40:01Z","updated_at":"2018-05-16T23:40:01Z","html_url":"https://github.com/cakephp/cakephp/pull/12090#discussion_r188802903","pull_request_url":"https://api.github.com/repos/cakephp/cakephp/pulls/12090","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/comments/188802903"},"html":{"href":"https://github.com/cakephp/cakephp/pull/12090#discussion_r188802903"},"pull_request":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/12090"}},"in_reply_to_id":188707801},"pull_request":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/12090","id":188448804,"html_url":"https://github.com/cakephp/cakephp/pull/12090","diff_url":"https://github.com/cakephp/cakephp/pull/12090.diff","patch_url":"https://github.com/cakephp/cakephp/pull/12090.patch","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/12090","number":12090,"state":"open","locked":false,"title":"Added SQL RAND() function.","user":{"login":"dmromanov","id":299059,"avatar_url":"https://avatars0.githubusercontent.com/u/299059?v=4","gravatar_id":"","url":"https://api.github.com/users/dmromanov","html_url":"https://github.com/dmromanov","followers_url":"https://api.github.com/users/dmromanov/followers","following_url":"https://api.github.com/users/dmromanov/following{/other_user}","gists_url":"https://api.github.com/users/dmromanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmromanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmromanov/subscriptions","organizations_url":"https://api.github.com/users/dmromanov/orgs","repos_url":"https://api.github.com/users/dmromanov/repos","events_url":"https://api.github.com/users/dmromanov/events{/privacy}","received_events_url":"https://api.github.com/users/dmromanov/received_events","type":"User","site_admin":false},"body":"Added an SQL RAND() function to ORM.\r\n\r\nBecause Sqlite is the only DBMS with RANDOM() function returning values not between 0 <= x < 1, I've added some normalization to make the function consistent.\r\n\r\nSeeding is not supported.\r\n\r\nRefs #12077","created_at":"2018-05-16T14:17:41Z","updated_at":"2018-05-16T23:40:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ee7f94cc5bd416f921a6444ea0b823c9d6e9434","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/171","html_url":"https://github.com/cakephp/cakephp/milestone/171","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/171/labels","id":3342335,"number":171,"title":"3.6.4","description":"Bugfixes for 3.6","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":35,"closed_issues":7,"state":"open","created_at":"2018-05-13T23:21:41Z","updated_at":"2018-05-16T18:05:37Z","due_on":"2018-06-01T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/cakephp/cakephp/pulls/12090/commits","review_comments_url":"https://api.github.com/repos/cakephp/cakephp/pulls/12090/comments","review_comment_url":"https://api.github.com/repos/cakephp/cakephp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/12090/comments","statuses_url":"https://api.github.com/repos/cakephp/cakephp/statuses/102ed1a644a0fe39f187549782867be46becd70a","head":{"label":"dmromanov:feature/sql-rand-function","ref":"feature/sql-rand-function","sha":"102ed1a644a0fe39f187549782867be46becd70a","user":{"login":"dmromanov","id":299059,"avatar_url":"https://avatars0.githubusercontent.com/u/299059?v=4","gravatar_id":"","url":"https://api.github.com/users/dmromanov","html_url":"https://github.com/dmromanov","followers_url":"https://api.github.com/users/dmromanov/followers","following_url":"https://api.github.com/users/dmromanov/following{/other_user}","gists_url":"https://api.github.com/users/dmromanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmromanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmromanov/subscriptions","organizations_url":"https://api.github.com/users/dmromanov/orgs","repos_url":"https://api.github.com/users/dmromanov/repos","events_url":"https://api.github.com/users/dmromanov/events{/privacy}","received_events_url":"https://api.github.com/users/dmromanov/received_events","type":"User","site_admin":false},"repo":{"id":49667150,"name":"cakephp","full_name":"dmromanov/cakephp","owner":{"login":"dmromanov","id":299059,"avatar_url":"https://avatars0.githubusercontent.com/u/299059?v=4","gravatar_id":"","url":"https://api.github.com/users/dmromanov","html_url":"https://github.com/dmromanov","followers_url":"https://api.github.com/users/dmromanov/followers","following_url":"https://api.github.com/users/dmromanov/following{/other_user}","gists_url":"https://api.github.com/users/dmromanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmromanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmromanov/subscriptions","organizations_url":"https://api.github.com/users/dmromanov/orgs","repos_url":"https://api.github.com/users/dmromanov/repos","events_url":"https://api.github.com/users/dmromanov/events{/privacy}","received_events_url":"https://api.github.com/users/dmromanov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dmromanov/cakephp","description":"CakePHP: The Rapid Development Framework for PHP - Official Repository","fork":true,"url":"https://api.github.com/repos/dmromanov/cakephp","forks_url":"https://api.github.com/repos/dmromanov/cakephp/forks","keys_url":"https://api.github.com/repos/dmromanov/cakephp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmromanov/cakephp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmromanov/cakephp/teams","hooks_url":"https://api.github.com/repos/dmromanov/cakephp/hooks","issue_events_url":"https://api.github.com/repos/dmromanov/cakephp/issues/events{/number}","events_url":"https://api.github.com/repos/dmromanov/cakephp/events","assignees_url":"https://api.github.com/repos/dmromanov/cakephp/assignees{/user}","branches_url":"https://api.github.com/repos/dmromanov/cakephp/branches{/branch}","tags_url":"https://api.github.com/repos/dmromanov/cakephp/tags","blobs_url":"https://api.github.com/repos/dmromanov/cakephp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmromanov/cakephp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmromanov/cakephp/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmromanov/cakephp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmromanov/cakephp/statuses/{sha}","languages_url":"https://api.github.com/repos/dmromanov/cakephp/languages","stargazers_url":"https://api.github.com/repos/dmromanov/cakephp/stargazers","contributors_url":"https://api.github.com/repos/dmromanov/cakephp/contributors","subscribers_url":"https://api.github.com/repos/dmromanov/cakephp/subscribers","subscription_url":"https://api.github.com/repos/dmromanov/cakephp/subscription","commits_url":"https://api.github.com/repos/dmromanov/cakephp/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmromanov/cakephp/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmromanov/cakephp/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmromanov/cakephp/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmromanov/cakephp/contents/{+path}","compare_url":"https://api.github.com/repos/dmromanov/cakephp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmromanov/cakephp/merges","archive_url":"https://api.github.com/repos/dmromanov/cakephp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmromanov/cakephp/downloads","issues_url":"https://api.github.com/repos/dmromanov/cakephp/issues{/number}","pulls_url":"https://api.github.com/repos/dmromanov/cakephp/pulls{/number}","milestones_url":"https://api.github.com/repos/dmromanov/cakephp/milestones{/number}","notifications_url":"https://api.github.com/repos/dmromanov/cakephp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmromanov/cakephp/labels{/name}","releases_url":"https://api.github.com/repos/dmromanov/cakephp/releases{/id}","deployments_url":"https://api.github.com/repos/dmromanov/cakephp/deployments","created_at":"2016-01-14T18:41:02Z","updated_at":"2018-05-16T10:50:07Z","pushed_at":"2018-05-16T17:11:53Z","git_url":"git://github.com/dmromanov/cakephp.git","ssh_url":"git@github.com:dmromanov/cakephp.git","clone_url":"https://github.com/dmromanov/cakephp.git","svn_url":"https://github.com/dmromanov/cakephp","homepage":"http://cakephp.org","size":74594,"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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cakephp:master","ref":"master","sha":"fe6d068147cc76bfbadbcb6d1538c0de429b4ac5","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-05-16T18:05:40Z","pushed_at":"2018-05-16T18:05:40Z","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":77558,"stargazers_count":7537,"watchers_count":7537,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3320,"mirror_url":null,"archived":false,"open_issues_count":238,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":3320,"open_issues":238,"watchers":7537,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/12090"},"html":{"href":"https://github.com/cakephp/cakephp/pull/12090"},"issue":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/12090"},"comments":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/12090/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/12090/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/12090/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/cakephp/statuses/102ed1a644a0fe39f187549782867be46becd70a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"markstory"}}