{"action":"created","comment":{"url":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls/comments/91302627","pull_request_review_id":11810348,"id":91302627,"diff_hunk":"@@ -0,0 +1,116 @@\n+<?php\n+\n+namespace frontend\\controllers;\n+\n+use Yii;\n+use yii\\web\\Controller;\n+use frontend\\models\\University;\n+use frontend\\models\\Department;\n+use frontend\\models\\Discipline;\n+use frontend\\models\\Students;\n+\n+class UniversitiesController extends Controller\n+{\n+    public function actionIndex()\n+    {\n+        return $this->render('index');\n+    }\n+\n+    public function actionUniversity()\n+    {\n+        $model = new University();\n+        $dataProvider = $model->search(Yii::$app->request->queryParams);\n+\n+        return $this->render('indexuniversity', [\n+            'searchModel' => $model,\n+            'dataProvider' => $dataProvider,\n+        ]);\n+    }\n+\n+    public function actionCreateuniversity()\n+    {\n+        $model = new University();\n+\n+        if (count(Yii::$app->request->post('University'))) {\n+            $university = Yii::$app->request->post('University');\n+            $model->name = $university['name'];","path":"frontend/controllers/UniversitiesController.php","position":36,"original_position":36,"commit_id":"7742cac44856e44fe915511ced11058b6599b105","original_commit_id":"7742cac44856e44fe915511ced11058b6599b105","user":{"login":"dchabanenko","id":7962510,"avatar_url":"https://avatars.githubusercontent.com/u/7962510?v=3","gravatar_id":"","url":"https://api.github.com/users/dchabanenko","html_url":"https://github.com/dchabanenko","followers_url":"https://api.github.com/users/dchabanenko/followers","following_url":"https://api.github.com/users/dchabanenko/following{/other_user}","gists_url":"https://api.github.com/users/dchabanenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dchabanenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchabanenko/subscriptions","organizations_url":"https://api.github.com/users/dchabanenko/orgs","repos_url":"https://api.github.com/users/dchabanenko/repos","events_url":"https://api.github.com/users/dchabanenko/events{/privacy}","received_events_url":"https://api.github.com/users/dchabanenko/received_events","type":"User","site_admin":false},"body":"you can use $model->load(Yii::$app->request->post('University')) with your validation rules should set all the fields","created_at":"2016-12-07T14:26:47Z","updated_at":"2016-12-07T14:26:47Z","html_url":"https://github.com/Gurguk/gh-dz-7/pull/1#discussion_r91302627","pull_request_url":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls/comments/91302627"},"html":{"href":"https://github.com/Gurguk/gh-dz-7/pull/1#discussion_r91302627"},"pull_request":{"href":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls/1","id":96822788,"html_url":"https://github.com/Gurguk/gh-dz-7/pull/1","diff_url":"https://github.com/Gurguk/gh-dz-7/pull/1.diff","patch_url":"https://github.com/Gurguk/gh-dz-7/pull/1.patch","issue_url":"https://api.github.com/repos/Gurguk/gh-dz-7/issues/1","number":1,"state":"open","locked":false,"title":"Homework","user":{"login":"Gurguk","id":8437726,"avatar_url":"https://avatars.githubusercontent.com/u/8437726?v=3","gravatar_id":"","url":"https://api.github.com/users/Gurguk","html_url":"https://github.com/Gurguk","followers_url":"https://api.github.com/users/Gurguk/followers","following_url":"https://api.github.com/users/Gurguk/following{/other_user}","gists_url":"https://api.github.com/users/Gurguk/gists{/gist_id}","starred_url":"https://api.github.com/users/Gurguk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gurguk/subscriptions","organizations_url":"https://api.github.com/users/Gurguk/orgs","repos_url":"https://api.github.com/users/Gurguk/repos","events_url":"https://api.github.com/users/Gurguk/events{/privacy}","received_events_url":"https://api.github.com/users/Gurguk/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-06T22:46:25Z","updated_at":"2016-12-07T14:26:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4362d458f14a8a94bafb1e4c2e33397eca668ee","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Gurguk/gh-dz-7/issues/1/comments","statuses_url":"https://api.github.com/repos/Gurguk/gh-dz-7/statuses/7742cac44856e44fe915511ced11058b6599b105","head":{"label":"Gurguk:dev","ref":"dev","sha":"7742cac44856e44fe915511ced11058b6599b105","user":{"login":"Gurguk","id":8437726,"avatar_url":"https://avatars.githubusercontent.com/u/8437726?v=3","gravatar_id":"","url":"https://api.github.com/users/Gurguk","html_url":"https://github.com/Gurguk","followers_url":"https://api.github.com/users/Gurguk/followers","following_url":"https://api.github.com/users/Gurguk/following{/other_user}","gists_url":"https://api.github.com/users/Gurguk/gists{/gist_id}","starred_url":"https://api.github.com/users/Gurguk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gurguk/subscriptions","organizations_url":"https://api.github.com/users/Gurguk/orgs","repos_url":"https://api.github.com/users/Gurguk/repos","events_url":"https://api.github.com/users/Gurguk/events{/privacy}","received_events_url":"https://api.github.com/users/Gurguk/received_events","type":"User","site_admin":false},"repo":{"id":75775743,"name":"gh-dz-7","full_name":"Gurguk/gh-dz-7","owner":{"login":"Gurguk","id":8437726,"avatar_url":"https://avatars.githubusercontent.com/u/8437726?v=3","gravatar_id":"","url":"https://api.github.com/users/Gurguk","html_url":"https://github.com/Gurguk","followers_url":"https://api.github.com/users/Gurguk/followers","following_url":"https://api.github.com/users/Gurguk/following{/other_user}","gists_url":"https://api.github.com/users/Gurguk/gists{/gist_id}","starred_url":"https://api.github.com/users/Gurguk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gurguk/subscriptions","organizations_url":"https://api.github.com/users/Gurguk/orgs","repos_url":"https://api.github.com/users/Gurguk/repos","events_url":"https://api.github.com/users/Gurguk/events{/privacy}","received_events_url":"https://api.github.com/users/Gurguk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Gurguk/gh-dz-7","description":null,"fork":false,"url":"https://api.github.com/repos/Gurguk/gh-dz-7","forks_url":"https://api.github.com/repos/Gurguk/gh-dz-7/forks","keys_url":"https://api.github.com/repos/Gurguk/gh-dz-7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gurguk/gh-dz-7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gurguk/gh-dz-7/teams","hooks_url":"https://api.github.com/repos/Gurguk/gh-dz-7/hooks","issue_events_url":"https://api.github.com/repos/Gurguk/gh-dz-7/issues/events{/number}","events_url":"https://api.github.com/repos/Gurguk/gh-dz-7/events","assignees_url":"https://api.github.com/repos/Gurguk/gh-dz-7/assignees{/user}","branches_url":"https://api.github.com/repos/Gurguk/gh-dz-7/branches{/branch}","tags_url":"https://api.github.com/repos/Gurguk/gh-dz-7/tags","blobs_url":"https://api.github.com/repos/Gurguk/gh-dz-7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gurguk/gh-dz-7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gurguk/gh-dz-7/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gurguk/gh-dz-7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gurguk/gh-dz-7/statuses/{sha}","languages_url":"https://api.github.com/repos/Gurguk/gh-dz-7/languages","stargazers_url":"https://api.github.com/repos/Gurguk/gh-dz-7/stargazers","contributors_url":"https://api.github.com/repos/Gurguk/gh-dz-7/contributors","subscribers_url":"https://api.github.com/repos/Gurguk/gh-dz-7/subscribers","subscription_url":"https://api.github.com/repos/Gurguk/gh-dz-7/subscription","commits_url":"https://api.github.com/repos/Gurguk/gh-dz-7/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gurguk/gh-dz-7/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gurguk/gh-dz-7/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gurguk/gh-dz-7/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gurguk/gh-dz-7/contents/{+path}","compare_url":"https://api.github.com/repos/Gurguk/gh-dz-7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gurguk/gh-dz-7/merges","archive_url":"https://api.github.com/repos/Gurguk/gh-dz-7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gurguk/gh-dz-7/downloads","issues_url":"https://api.github.com/repos/Gurguk/gh-dz-7/issues{/number}","pulls_url":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls{/number}","milestones_url":"https://api.github.com/repos/Gurguk/gh-dz-7/milestones{/number}","notifications_url":"https://api.github.com/repos/Gurguk/gh-dz-7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gurguk/gh-dz-7/labels{/name}","releases_url":"https://api.github.com/repos/Gurguk/gh-dz-7/releases{/id}","deployments_url":"https://api.github.com/repos/Gurguk/gh-dz-7/deployments","created_at":"2016-12-06T22:06:28Z","updated_at":"2016-12-06T22:40:27Z","pushed_at":"2016-12-06T22:46:25Z","git_url":"git://github.com/Gurguk/gh-dz-7.git","ssh_url":"git@github.com:Gurguk/gh-dz-7.git","clone_url":"https://github.com/Gurguk/gh-dz-7.git","svn_url":"https://github.com/Gurguk/gh-dz-7","homepage":null,"size":62,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Gurguk:master","ref":"master","sha":"9fa7ccf4d22c598a6842bbc260aa8a208dd1e3fb","user":{"login":"Gurguk","id":8437726,"avatar_url":"https://avatars.githubusercontent.com/u/8437726?v=3","gravatar_id":"","url":"https://api.github.com/users/Gurguk","html_url":"https://github.com/Gurguk","followers_url":"https://api.github.com/users/Gurguk/followers","following_url":"https://api.github.com/users/Gurguk/following{/other_user}","gists_url":"https://api.github.com/users/Gurguk/gists{/gist_id}","starred_url":"https://api.github.com/users/Gurguk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gurguk/subscriptions","organizations_url":"https://api.github.com/users/Gurguk/orgs","repos_url":"https://api.github.com/users/Gurguk/repos","events_url":"https://api.github.com/users/Gurguk/events{/privacy}","received_events_url":"https://api.github.com/users/Gurguk/received_events","type":"User","site_admin":false},"repo":{"id":75775743,"name":"gh-dz-7","full_name":"Gurguk/gh-dz-7","owner":{"login":"Gurguk","id":8437726,"avatar_url":"https://avatars.githubusercontent.com/u/8437726?v=3","gravatar_id":"","url":"https://api.github.com/users/Gurguk","html_url":"https://github.com/Gurguk","followers_url":"https://api.github.com/users/Gurguk/followers","following_url":"https://api.github.com/users/Gurguk/following{/other_user}","gists_url":"https://api.github.com/users/Gurguk/gists{/gist_id}","starred_url":"https://api.github.com/users/Gurguk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gurguk/subscriptions","organizations_url":"https://api.github.com/users/Gurguk/orgs","repos_url":"https://api.github.com/users/Gurguk/repos","events_url":"https://api.github.com/users/Gurguk/events{/privacy}","received_events_url":"https://api.github.com/users/Gurguk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Gurguk/gh-dz-7","description":null,"fork":false,"url":"https://api.github.com/repos/Gurguk/gh-dz-7","forks_url":"https://api.github.com/repos/Gurguk/gh-dz-7/forks","keys_url":"https://api.github.com/repos/Gurguk/gh-dz-7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gurguk/gh-dz-7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gurguk/gh-dz-7/teams","hooks_url":"https://api.github.com/repos/Gurguk/gh-dz-7/hooks","issue_events_url":"https://api.github.com/repos/Gurguk/gh-dz-7/issues/events{/number}","events_url":"https://api.github.com/repos/Gurguk/gh-dz-7/events","assignees_url":"https://api.github.com/repos/Gurguk/gh-dz-7/assignees{/user}","branches_url":"https://api.github.com/repos/Gurguk/gh-dz-7/branches{/branch}","tags_url":"https://api.github.com/repos/Gurguk/gh-dz-7/tags","blobs_url":"https://api.github.com/repos/Gurguk/gh-dz-7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gurguk/gh-dz-7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gurguk/gh-dz-7/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gurguk/gh-dz-7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gurguk/gh-dz-7/statuses/{sha}","languages_url":"https://api.github.com/repos/Gurguk/gh-dz-7/languages","stargazers_url":"https://api.github.com/repos/Gurguk/gh-dz-7/stargazers","contributors_url":"https://api.github.com/repos/Gurguk/gh-dz-7/contributors","subscribers_url":"https://api.github.com/repos/Gurguk/gh-dz-7/subscribers","subscription_url":"https://api.github.com/repos/Gurguk/gh-dz-7/subscription","commits_url":"https://api.github.com/repos/Gurguk/gh-dz-7/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gurguk/gh-dz-7/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gurguk/gh-dz-7/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gurguk/gh-dz-7/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gurguk/gh-dz-7/contents/{+path}","compare_url":"https://api.github.com/repos/Gurguk/gh-dz-7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gurguk/gh-dz-7/merges","archive_url":"https://api.github.com/repos/Gurguk/gh-dz-7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gurguk/gh-dz-7/downloads","issues_url":"https://api.github.com/repos/Gurguk/gh-dz-7/issues{/number}","pulls_url":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls{/number}","milestones_url":"https://api.github.com/repos/Gurguk/gh-dz-7/milestones{/number}","notifications_url":"https://api.github.com/repos/Gurguk/gh-dz-7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gurguk/gh-dz-7/labels{/name}","releases_url":"https://api.github.com/repos/Gurguk/gh-dz-7/releases{/id}","deployments_url":"https://api.github.com/repos/Gurguk/gh-dz-7/deployments","created_at":"2016-12-06T22:06:28Z","updated_at":"2016-12-06T22:40:27Z","pushed_at":"2016-12-06T22:46:25Z","git_url":"git://github.com/Gurguk/gh-dz-7.git","ssh_url":"git@github.com:Gurguk/gh-dz-7.git","clone_url":"https://github.com/Gurguk/gh-dz-7.git","svn_url":"https://github.com/Gurguk/gh-dz-7","homepage":null,"size":62,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls/1"},"html":{"href":"https://github.com/Gurguk/gh-dz-7/pull/1"},"issue":{"href":"https://api.github.com/repos/Gurguk/gh-dz-7/issues/1"},"comments":{"href":"https://api.github.com/repos/Gurguk/gh-dz-7/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Gurguk/gh-dz-7/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Gurguk/gh-dz-7/statuses/7742cac44856e44fe915511ced11058b6599b105"}}}}
{"actor":{"display_login":"dchabanenko"}}