{"action":"created","comment":{"url":"https://api.github.com/repos/dinhhoanglong91/fes/pulls/comments/26727595","id":26727595,"diff_hunk":"@@ -13,4 +16,64 @@ public function beforeSave($options = []) {\n \t\t}\n \t\treturn true;\n \t}\n+\n+\tvar $validate = [];\n+\t\t\n+\tpublic function validUser()","path":"app/Model/User.php","position":17,"original_position":17,"commit_id":"8b0f180f30e1d475560adabcf123638da6128afd","original_commit_id":"b5eb61b74bf25625e1f102e9a2f0973165f7c0dd","user":{"login":"dinhhoanglong91","id":1893820,"avatar_url":"https://avatars.githubusercontent.com/u/1893820?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhhoanglong91","html_url":"https://github.com/dinhhoanglong91","followers_url":"https://api.github.com/users/dinhhoanglong91/followers","following_url":"https://api.github.com/users/dinhhoanglong91/following{/other_user}","gists_url":"https://api.github.com/users/dinhhoanglong91/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhhoanglong91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhhoanglong91/subscriptions","organizations_url":"https://api.github.com/users/dinhhoanglong91/orgs","repos_url":"https://api.github.com/users/dinhhoanglong91/repos","events_url":"https://api.github.com/users/dinhhoanglong91/events{/privacy}","received_events_url":"https://api.github.com/users/dinhhoanglong91/received_events","type":"User","site_admin":false},"body":"@HoangThiTuanDung If you would like to use multiple validation rule, use this code.\r\nhttp://bakery.cakephp.org/articles/dardosordi/2008/07/29/multivalidatablebehavior-using-many-validation-rulesets-per-model","created_at":"2015-03-19T03:24:42Z","updated_at":"2015-03-19T03:24:42Z","html_url":"https://github.com/dinhhoanglong91/fes/pull/7#discussion_r26727595","pull_request_url":"https://api.github.com/repos/dinhhoanglong91/fes/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/dinhhoanglong91/fes/pulls/comments/26727595"},"html":{"href":"https://github.com/dinhhoanglong91/fes/pull/7#discussion_r26727595"},"pull_request":{"href":"https://api.github.com/repos/dinhhoanglong91/fes/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/dinhhoanglong91/fes/pulls/7","id":31231957,"html_url":"https://github.com/dinhhoanglong91/fes/pull/7","diff_url":"https://github.com/dinhhoanglong91/fes/pull/7.diff","patch_url":"https://github.com/dinhhoanglong91/fes/pull/7.patch","issue_url":"https://api.github.com/repos/dinhhoanglong91/fes/issues/7","number":7,"state":"open","locked":false,"title":"User admin page","user":{"login":"HoangThiTuanDung","id":5584520,"avatar_url":"https://avatars.githubusercontent.com/u/5584520?v=3","gravatar_id":"","url":"https://api.github.com/users/HoangThiTuanDung","html_url":"https://github.com/HoangThiTuanDung","followers_url":"https://api.github.com/users/HoangThiTuanDung/followers","following_url":"https://api.github.com/users/HoangThiTuanDung/following{/other_user}","gists_url":"https://api.github.com/users/HoangThiTuanDung/gists{/gist_id}","starred_url":"https://api.github.com/users/HoangThiTuanDung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoangThiTuanDung/subscriptions","organizations_url":"https://api.github.com/users/HoangThiTuanDung/orgs","repos_url":"https://api.github.com/users/HoangThiTuanDung/repos","events_url":"https://api.github.com/users/HoangThiTuanDung/events{/privacy}","received_events_url":"https://api.github.com/users/HoangThiTuanDung/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-16T10:38:14Z","updated_at":"2015-03-19T03:24:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd86b7682d9a31b5c7eec1595a324c9b18f0c5fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dinhhoanglong91/fes/pulls/7/commits","review_comments_url":"https://api.github.com/repos/dinhhoanglong91/fes/pulls/7/comments","review_comment_url":"https://api.github.com/repos/dinhhoanglong91/fes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dinhhoanglong91/fes/issues/7/comments","statuses_url":"https://api.github.com/repos/dinhhoanglong91/fes/statuses/8b0f180f30e1d475560adabcf123638da6128afd","head":{"label":"HoangThiTuanDung:page_admin","ref":"page_admin","sha":"8b0f180f30e1d475560adabcf123638da6128afd","user":{"login":"HoangThiTuanDung","id":5584520,"avatar_url":"https://avatars.githubusercontent.com/u/5584520?v=3","gravatar_id":"","url":"https://api.github.com/users/HoangThiTuanDung","html_url":"https://github.com/HoangThiTuanDung","followers_url":"https://api.github.com/users/HoangThiTuanDung/followers","following_url":"https://api.github.com/users/HoangThiTuanDung/following{/other_user}","gists_url":"https://api.github.com/users/HoangThiTuanDung/gists{/gist_id}","starred_url":"https://api.github.com/users/HoangThiTuanDung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoangThiTuanDung/subscriptions","organizations_url":"https://api.github.com/users/HoangThiTuanDung/orgs","repos_url":"https://api.github.com/users/HoangThiTuanDung/repos","events_url":"https://api.github.com/users/HoangThiTuanDung/events{/privacy}","received_events_url":"https://api.github.com/users/HoangThiTuanDung/received_events","type":"User","site_admin":false},"repo":{"id":31931915,"name":"fes","full_name":"HoangThiTuanDung/fes","owner":{"login":"HoangThiTuanDung","id":5584520,"avatar_url":"https://avatars.githubusercontent.com/u/5584520?v=3","gravatar_id":"","url":"https://api.github.com/users/HoangThiTuanDung","html_url":"https://github.com/HoangThiTuanDung","followers_url":"https://api.github.com/users/HoangThiTuanDung/followers","following_url":"https://api.github.com/users/HoangThiTuanDung/following{/other_user}","gists_url":"https://api.github.com/users/HoangThiTuanDung/gists{/gist_id}","starred_url":"https://api.github.com/users/HoangThiTuanDung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoangThiTuanDung/subscriptions","organizations_url":"https://api.github.com/users/HoangThiTuanDung/orgs","repos_url":"https://api.github.com/users/HoangThiTuanDung/repos","events_url":"https://api.github.com/users/HoangThiTuanDung/events{/privacy}","received_events_url":"https://api.github.com/users/HoangThiTuanDung/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HoangThiTuanDung/fes","description":"","fork":true,"url":"https://api.github.com/repos/HoangThiTuanDung/fes","forks_url":"https://api.github.com/repos/HoangThiTuanDung/fes/forks","keys_url":"https://api.github.com/repos/HoangThiTuanDung/fes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HoangThiTuanDung/fes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HoangThiTuanDung/fes/teams","hooks_url":"https://api.github.com/repos/HoangThiTuanDung/fes/hooks","issue_events_url":"https://api.github.com/repos/HoangThiTuanDung/fes/issues/events{/number}","events_url":"https://api.github.com/repos/HoangThiTuanDung/fes/events","assignees_url":"https://api.github.com/repos/HoangThiTuanDung/fes/assignees{/user}","branches_url":"https://api.github.com/repos/HoangThiTuanDung/fes/branches{/branch}","tags_url":"https://api.github.com/repos/HoangThiTuanDung/fes/tags","blobs_url":"https://api.github.com/repos/HoangThiTuanDung/fes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HoangThiTuanDung/fes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HoangThiTuanDung/fes/git/refs{/sha}","trees_url":"https://api.github.com/repos/HoangThiTuanDung/fes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HoangThiTuanDung/fes/statuses/{sha}","languages_url":"https://api.github.com/repos/HoangThiTuanDung/fes/languages","stargazers_url":"https://api.github.com/repos/HoangThiTuanDung/fes/stargazers","contributors_url":"https://api.github.com/repos/HoangThiTuanDung/fes/contributors","subscribers_url":"https://api.github.com/repos/HoangThiTuanDung/fes/subscribers","subscription_url":"https://api.github.com/repos/HoangThiTuanDung/fes/subscription","commits_url":"https://api.github.com/repos/HoangThiTuanDung/fes/commits{/sha}","git_commits_url":"https://api.github.com/repos/HoangThiTuanDung/fes/git/commits{/sha}","comments_url":"https://api.github.com/repos/HoangThiTuanDung/fes/comments{/number}","issue_comment_url":"https://api.github.com/repos/HoangThiTuanDung/fes/issues/comments{/number}","contents_url":"https://api.github.com/repos/HoangThiTuanDung/fes/contents/{+path}","compare_url":"https://api.github.com/repos/HoangThiTuanDung/fes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HoangThiTuanDung/fes/merges","archive_url":"https://api.github.com/repos/HoangThiTuanDung/fes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HoangThiTuanDung/fes/downloads","issues_url":"https://api.github.com/repos/HoangThiTuanDung/fes/issues{/number}","pulls_url":"https://api.github.com/repos/HoangThiTuanDung/fes/pulls{/number}","milestones_url":"https://api.github.com/repos/HoangThiTuanDung/fes/milestones{/number}","notifications_url":"https://api.github.com/repos/HoangThiTuanDung/fes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HoangThiTuanDung/fes/labels{/name}","releases_url":"https://api.github.com/repos/HoangThiTuanDung/fes/releases{/id}","created_at":"2015-03-10T01:27:39Z","updated_at":"2015-03-10T11:25:34Z","pushed_at":"2015-03-19T03:06:43Z","git_url":"git://github.com/HoangThiTuanDung/fes.git","ssh_url":"git@github.com:HoangThiTuanDung/fes.git","clone_url":"https://github.com/HoangThiTuanDung/fes.git","svn_url":"https://github.com/HoangThiTuanDung/fes","homepage":null,"size":780,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dinhhoanglong91:develop","ref":"develop","sha":"f73639032bcb4d00076b4b35d26cc8b8f477ceef","user":{"login":"dinhhoanglong91","id":1893820,"avatar_url":"https://avatars.githubusercontent.com/u/1893820?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhhoanglong91","html_url":"https://github.com/dinhhoanglong91","followers_url":"https://api.github.com/users/dinhhoanglong91/followers","following_url":"https://api.github.com/users/dinhhoanglong91/following{/other_user}","gists_url":"https://api.github.com/users/dinhhoanglong91/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhhoanglong91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhhoanglong91/subscriptions","organizations_url":"https://api.github.com/users/dinhhoanglong91/orgs","repos_url":"https://api.github.com/users/dinhhoanglong91/repos","events_url":"https://api.github.com/users/dinhhoanglong91/events{/privacy}","received_events_url":"https://api.github.com/users/dinhhoanglong91/received_events","type":"User","site_admin":false},"repo":{"id":31931266,"name":"fes","full_name":"dinhhoanglong91/fes","owner":{"login":"dinhhoanglong91","id":1893820,"avatar_url":"https://avatars.githubusercontent.com/u/1893820?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhhoanglong91","html_url":"https://github.com/dinhhoanglong91","followers_url":"https://api.github.com/users/dinhhoanglong91/followers","following_url":"https://api.github.com/users/dinhhoanglong91/following{/other_user}","gists_url":"https://api.github.com/users/dinhhoanglong91/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhhoanglong91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhhoanglong91/subscriptions","organizations_url":"https://api.github.com/users/dinhhoanglong91/orgs","repos_url":"https://api.github.com/users/dinhhoanglong91/repos","events_url":"https://api.github.com/users/dinhhoanglong91/events{/privacy}","received_events_url":"https://api.github.com/users/dinhhoanglong91/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dinhhoanglong91/fes","description":"","fork":false,"url":"https://api.github.com/repos/dinhhoanglong91/fes","forks_url":"https://api.github.com/repos/dinhhoanglong91/fes/forks","keys_url":"https://api.github.com/repos/dinhhoanglong91/fes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dinhhoanglong91/fes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dinhhoanglong91/fes/teams","hooks_url":"https://api.github.com/repos/dinhhoanglong91/fes/hooks","issue_events_url":"https://api.github.com/repos/dinhhoanglong91/fes/issues/events{/number}","events_url":"https://api.github.com/repos/dinhhoanglong91/fes/events","assignees_url":"https://api.github.com/repos/dinhhoanglong91/fes/assignees{/user}","branches_url":"https://api.github.com/repos/dinhhoanglong91/fes/branches{/branch}","tags_url":"https://api.github.com/repos/dinhhoanglong91/fes/tags","blobs_url":"https://api.github.com/repos/dinhhoanglong91/fes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dinhhoanglong91/fes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dinhhoanglong91/fes/git/refs{/sha}","trees_url":"https://api.github.com/repos/dinhhoanglong91/fes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dinhhoanglong91/fes/statuses/{sha}","languages_url":"https://api.github.com/repos/dinhhoanglong91/fes/languages","stargazers_url":"https://api.github.com/repos/dinhhoanglong91/fes/stargazers","contributors_url":"https://api.github.com/repos/dinhhoanglong91/fes/contributors","subscribers_url":"https://api.github.com/repos/dinhhoanglong91/fes/subscribers","subscription_url":"https://api.github.com/repos/dinhhoanglong91/fes/subscription","commits_url":"https://api.github.com/repos/dinhhoanglong91/fes/commits{/sha}","git_commits_url":"https://api.github.com/repos/dinhhoanglong91/fes/git/commits{/sha}","comments_url":"https://api.github.com/repos/dinhhoanglong91/fes/comments{/number}","issue_comment_url":"https://api.github.com/repos/dinhhoanglong91/fes/issues/comments{/number}","contents_url":"https://api.github.com/repos/dinhhoanglong91/fes/contents/{+path}","compare_url":"https://api.github.com/repos/dinhhoanglong91/fes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dinhhoanglong91/fes/merges","archive_url":"https://api.github.com/repos/dinhhoanglong91/fes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dinhhoanglong91/fes/downloads","issues_url":"https://api.github.com/repos/dinhhoanglong91/fes/issues{/number}","pulls_url":"https://api.github.com/repos/dinhhoanglong91/fes/pulls{/number}","milestones_url":"https://api.github.com/repos/dinhhoanglong91/fes/milestones{/number}","notifications_url":"https://api.github.com/repos/dinhhoanglong91/fes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dinhhoanglong91/fes/labels{/name}","releases_url":"https://api.github.com/repos/dinhhoanglong91/fes/releases{/id}","created_at":"2015-03-10T01:08:13Z","updated_at":"2015-03-13T07:52:31Z","pushed_at":"2015-03-13T07:52:28Z","git_url":"git://github.com/dinhhoanglong91/fes.git","ssh_url":"git@github.com:dinhhoanglong91/fes.git","clone_url":"https://github.com/dinhhoanglong91/fes.git","svn_url":"https://github.com/dinhhoanglong91/fes","homepage":null,"size":772,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/dinhhoanglong91/fes/pulls/7"},"html":{"href":"https://github.com/dinhhoanglong91/fes/pull/7"},"issue":{"href":"https://api.github.com/repos/dinhhoanglong91/fes/issues/7"},"comments":{"href":"https://api.github.com/repos/dinhhoanglong91/fes/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/dinhhoanglong91/fes/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/dinhhoanglong91/fes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dinhhoanglong91/fes/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/dinhhoanglong91/fes/statuses/8b0f180f30e1d475560adabcf123638da6128afd"}}}}