{"action":"created","comment":{"url":"https://api.github.com/repos/Trip09/symfony-standard/pulls/comments/26898779","id":26898779,"diff_hunk":"@@ -0,0 +1,43 @@\n+<?php\n+\n+namespace UserCounterBundle\\Controller;\n+\n+use Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\n+use Symfony\\Component\\HttpFoundation\\Request;\n+\n+class InfoUpdateController extends Controller {\n+\n+    public function infoUpdateAction(Request $request, $userEmail) {\n+\n+        $manager = $this->getDoctrine()->getManager();\n+        $PageId = $manager->createQuery('SELECT P.id FROM UserCounterBundle:Page P')->getSingleScalarResult();\n+        $user = $manager->getRepository('UserCounterBundle:User')->findOneByEmail($userEmail);\n+        $page = $manager->getRepository('UserCounterBundle:Page')->find($PageId);\n+\n+        $form = $this->createFormBuilder($user)\n+                ->setAction($this->generateUrl('user_change_info', array('userEmail' => $userEmail)))\n+                ->add('email', 'email', array('label' => 'Email', 'read_only' => 'true'))\n+                ->add('dob', 'date', array('label' => 'Birthdate', 'years' => range(date('Y') - 100, date('Y') - 18)))\n+                ->add('accountNumber', 'integer', array('label' => 'Account Number'))\n+                ->add('Change info', 'submit')\n+                ->getForm();\n+\n+        if ($request->isMethod('POST')) {","path":"src/UserCounterBundle/Controller/InfoUpdateController.php","position":25,"original_position":25,"commit_id":"0237330030f2efa56fb5512c5ae5053fbc616616","original_commit_id":"0237330030f2efa56fb5512c5ae5053fbc616616","user":{"login":"Trip09","id":5668134,"avatar_url":"https://avatars.githubusercontent.com/u/5668134?v=3","gravatar_id":"","url":"https://api.github.com/users/Trip09","html_url":"https://github.com/Trip09","followers_url":"https://api.github.com/users/Trip09/followers","following_url":"https://api.github.com/users/Trip09/following{/other_user}","gists_url":"https://api.github.com/users/Trip09/gists{/gist_id}","starred_url":"https://api.github.com/users/Trip09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trip09/subscriptions","organizations_url":"https://api.github.com/users/Trip09/orgs","repos_url":"https://api.github.com/users/Trip09/repos","events_url":"https://api.github.com/users/Trip09/events{/privacy}","received_events_url":"https://api.github.com/users/Trip09/received_events","type":"User","site_admin":false},"body":"really? :(","created_at":"2015-03-22T01:17:51Z","updated_at":"2015-03-22T01:17:51Z","html_url":"https://github.com/Trip09/symfony-standard/pull/1#discussion_r26898779","pull_request_url":"https://api.github.com/repos/Trip09/symfony-standard/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Trip09/symfony-standard/pulls/comments/26898779"},"html":{"href":"https://github.com/Trip09/symfony-standard/pull/1#discussion_r26898779"},"pull_request":{"href":"https://api.github.com/repos/Trip09/symfony-standard/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Trip09/symfony-standard/pulls/1","id":31615606,"html_url":"https://github.com/Trip09/symfony-standard/pull/1","diff_url":"https://github.com/Trip09/symfony-standard/pull/1.diff","patch_url":"https://github.com/Trip09/symfony-standard/pull/1.patch","issue_url":"https://api.github.com/repos/Trip09/symfony-standard/issues/1","number":1,"state":"open","locked":false,"title":"Junior PHP Test","user":{"login":"Joooseph","id":6195383,"avatar_url":"https://avatars.githubusercontent.com/u/6195383?v=3","gravatar_id":"","url":"https://api.github.com/users/Joooseph","html_url":"https://github.com/Joooseph","followers_url":"https://api.github.com/users/Joooseph/followers","following_url":"https://api.github.com/users/Joooseph/following{/other_user}","gists_url":"https://api.github.com/users/Joooseph/gists{/gist_id}","starred_url":"https://api.github.com/users/Joooseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joooseph/subscriptions","organizations_url":"https://api.github.com/users/Joooseph/orgs","repos_url":"https://api.github.com/users/Joooseph/repos","events_url":"https://api.github.com/users/Joooseph/events{/privacy}","received_events_url":"https://api.github.com/users/Joooseph/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-20T13:57:55Z","updated_at":"2015-03-22T01:17:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c4139619372b31f7f36c53e5becb150b860bac9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Trip09/symfony-standard/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Trip09/symfony-standard/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Trip09/symfony-standard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Trip09/symfony-standard/issues/1/comments","statuses_url":"https://api.github.com/repos/Trip09/symfony-standard/statuses/0237330030f2efa56fb5512c5ae5053fbc616616","head":{"label":"Joooseph:2.7","ref":"2.7","sha":"0237330030f2efa56fb5512c5ae5053fbc616616","user":{"login":"Joooseph","id":6195383,"avatar_url":"https://avatars.githubusercontent.com/u/6195383?v=3","gravatar_id":"","url":"https://api.github.com/users/Joooseph","html_url":"https://github.com/Joooseph","followers_url":"https://api.github.com/users/Joooseph/followers","following_url":"https://api.github.com/users/Joooseph/following{/other_user}","gists_url":"https://api.github.com/users/Joooseph/gists{/gist_id}","starred_url":"https://api.github.com/users/Joooseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joooseph/subscriptions","organizations_url":"https://api.github.com/users/Joooseph/orgs","repos_url":"https://api.github.com/users/Joooseph/repos","events_url":"https://api.github.com/users/Joooseph/events{/privacy}","received_events_url":"https://api.github.com/users/Joooseph/received_events","type":"User","site_admin":false},"repo":{"id":32085187,"name":"symfony-standard","full_name":"Joooseph/symfony-standard","owner":{"login":"Joooseph","id":6195383,"avatar_url":"https://avatars.githubusercontent.com/u/6195383?v=3","gravatar_id":"","url":"https://api.github.com/users/Joooseph","html_url":"https://github.com/Joooseph","followers_url":"https://api.github.com/users/Joooseph/followers","following_url":"https://api.github.com/users/Joooseph/following{/other_user}","gists_url":"https://api.github.com/users/Joooseph/gists{/gist_id}","starred_url":"https://api.github.com/users/Joooseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joooseph/subscriptions","organizations_url":"https://api.github.com/users/Joooseph/orgs","repos_url":"https://api.github.com/users/Joooseph/repos","events_url":"https://api.github.com/users/Joooseph/events{/privacy}","received_events_url":"https://api.github.com/users/Joooseph/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Joooseph/symfony-standard","description":"The \"Symfony Standard Edition\" distribution","fork":true,"url":"https://api.github.com/repos/Joooseph/symfony-standard","forks_url":"https://api.github.com/repos/Joooseph/symfony-standard/forks","keys_url":"https://api.github.com/repos/Joooseph/symfony-standard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Joooseph/symfony-standard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Joooseph/symfony-standard/teams","hooks_url":"https://api.github.com/repos/Joooseph/symfony-standard/hooks","issue_events_url":"https://api.github.com/repos/Joooseph/symfony-standard/issues/events{/number}","events_url":"https://api.github.com/repos/Joooseph/symfony-standard/events","assignees_url":"https://api.github.com/repos/Joooseph/symfony-standard/assignees{/user}","branches_url":"https://api.github.com/repos/Joooseph/symfony-standard/branches{/branch}","tags_url":"https://api.github.com/repos/Joooseph/symfony-standard/tags","blobs_url":"https://api.github.com/repos/Joooseph/symfony-standard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Joooseph/symfony-standard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Joooseph/symfony-standard/git/refs{/sha}","trees_url":"https://api.github.com/repos/Joooseph/symfony-standard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Joooseph/symfony-standard/statuses/{sha}","languages_url":"https://api.github.com/repos/Joooseph/symfony-standard/languages","stargazers_url":"https://api.github.com/repos/Joooseph/symfony-standard/stargazers","contributors_url":"https://api.github.com/repos/Joooseph/symfony-standard/contributors","subscribers_url":"https://api.github.com/repos/Joooseph/symfony-standard/subscribers","subscription_url":"https://api.github.com/repos/Joooseph/symfony-standard/subscription","commits_url":"https://api.github.com/repos/Joooseph/symfony-standard/commits{/sha}","git_commits_url":"https://api.github.com/repos/Joooseph/symfony-standard/git/commits{/sha}","comments_url":"https://api.github.com/repos/Joooseph/symfony-standard/comments{/number}","issue_comment_url":"https://api.github.com/repos/Joooseph/symfony-standard/issues/comments{/number}","contents_url":"https://api.github.com/repos/Joooseph/symfony-standard/contents/{+path}","compare_url":"https://api.github.com/repos/Joooseph/symfony-standard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Joooseph/symfony-standard/merges","archive_url":"https://api.github.com/repos/Joooseph/symfony-standard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Joooseph/symfony-standard/downloads","issues_url":"https://api.github.com/repos/Joooseph/symfony-standard/issues{/number}","pulls_url":"https://api.github.com/repos/Joooseph/symfony-standard/pulls{/number}","milestones_url":"https://api.github.com/repos/Joooseph/symfony-standard/milestones{/number}","notifications_url":"https://api.github.com/repos/Joooseph/symfony-standard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Joooseph/symfony-standard/labels{/name}","releases_url":"https://api.github.com/repos/Joooseph/symfony-standard/releases{/id}","created_at":"2015-03-12T15:39:14Z","updated_at":"2015-03-20T13:55:43Z","pushed_at":"2015-03-20T13:55:42Z","git_url":"git://github.com/Joooseph/symfony-standard.git","ssh_url":"git@github.com:Joooseph/symfony-standard.git","clone_url":"https://github.com/Joooseph/symfony-standard.git","svn_url":"https://github.com/Joooseph/symfony-standard","homepage":"symfony.com","size":1029,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"2.7"}},"base":{"label":"Trip09:2.7","ref":"2.7","sha":"9d15be061df640703d9bb1fc6e27483820532d73","user":{"login":"Trip09","id":5668134,"avatar_url":"https://avatars.githubusercontent.com/u/5668134?v=3","gravatar_id":"","url":"https://api.github.com/users/Trip09","html_url":"https://github.com/Trip09","followers_url":"https://api.github.com/users/Trip09/followers","following_url":"https://api.github.com/users/Trip09/following{/other_user}","gists_url":"https://api.github.com/users/Trip09/gists{/gist_id}","starred_url":"https://api.github.com/users/Trip09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trip09/subscriptions","organizations_url":"https://api.github.com/users/Trip09/orgs","repos_url":"https://api.github.com/users/Trip09/repos","events_url":"https://api.github.com/users/Trip09/events{/privacy}","received_events_url":"https://api.github.com/users/Trip09/received_events","type":"User","site_admin":false},"repo":{"id":31782651,"name":"symfony-standard","full_name":"Trip09/symfony-standard","owner":{"login":"Trip09","id":5668134,"avatar_url":"https://avatars.githubusercontent.com/u/5668134?v=3","gravatar_id":"","url":"https://api.github.com/users/Trip09","html_url":"https://github.com/Trip09","followers_url":"https://api.github.com/users/Trip09/followers","following_url":"https://api.github.com/users/Trip09/following{/other_user}","gists_url":"https://api.github.com/users/Trip09/gists{/gist_id}","starred_url":"https://api.github.com/users/Trip09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trip09/subscriptions","organizations_url":"https://api.github.com/users/Trip09/orgs","repos_url":"https://api.github.com/users/Trip09/repos","events_url":"https://api.github.com/users/Trip09/events{/privacy}","received_events_url":"https://api.github.com/users/Trip09/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Trip09/symfony-standard","description":"The \"Symfony Standard Edition\" distribution","fork":true,"url":"https://api.github.com/repos/Trip09/symfony-standard","forks_url":"https://api.github.com/repos/Trip09/symfony-standard/forks","keys_url":"https://api.github.com/repos/Trip09/symfony-standard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Trip09/symfony-standard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Trip09/symfony-standard/teams","hooks_url":"https://api.github.com/repos/Trip09/symfony-standard/hooks","issue_events_url":"https://api.github.com/repos/Trip09/symfony-standard/issues/events{/number}","events_url":"https://api.github.com/repos/Trip09/symfony-standard/events","assignees_url":"https://api.github.com/repos/Trip09/symfony-standard/assignees{/user}","branches_url":"https://api.github.com/repos/Trip09/symfony-standard/branches{/branch}","tags_url":"https://api.github.com/repos/Trip09/symfony-standard/tags","blobs_url":"https://api.github.com/repos/Trip09/symfony-standard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Trip09/symfony-standard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Trip09/symfony-standard/git/refs{/sha}","trees_url":"https://api.github.com/repos/Trip09/symfony-standard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Trip09/symfony-standard/statuses/{sha}","languages_url":"https://api.github.com/repos/Trip09/symfony-standard/languages","stargazers_url":"https://api.github.com/repos/Trip09/symfony-standard/stargazers","contributors_url":"https://api.github.com/repos/Trip09/symfony-standard/contributors","subscribers_url":"https://api.github.com/repos/Trip09/symfony-standard/subscribers","subscription_url":"https://api.github.com/repos/Trip09/symfony-standard/subscription","commits_url":"https://api.github.com/repos/Trip09/symfony-standard/commits{/sha}","git_commits_url":"https://api.github.com/repos/Trip09/symfony-standard/git/commits{/sha}","comments_url":"https://api.github.com/repos/Trip09/symfony-standard/comments{/number}","issue_comment_url":"https://api.github.com/repos/Trip09/symfony-standard/issues/comments{/number}","contents_url":"https://api.github.com/repos/Trip09/symfony-standard/contents/{+path}","compare_url":"https://api.github.com/repos/Trip09/symfony-standard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Trip09/symfony-standard/merges","archive_url":"https://api.github.com/repos/Trip09/symfony-standard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Trip09/symfony-standard/downloads","issues_url":"https://api.github.com/repos/Trip09/symfony-standard/issues{/number}","pulls_url":"https://api.github.com/repos/Trip09/symfony-standard/pulls{/number}","milestones_url":"https://api.github.com/repos/Trip09/symfony-standard/milestones{/number}","notifications_url":"https://api.github.com/repos/Trip09/symfony-standard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Trip09/symfony-standard/labels{/name}","releases_url":"https://api.github.com/repos/Trip09/symfony-standard/releases{/id}","created_at":"2015-03-06T18:21:59Z","updated_at":"2015-03-06T18:22:01Z","pushed_at":"2015-03-20T13:57:55Z","git_url":"git://github.com/Trip09/symfony-standard.git","ssh_url":"git@github.com:Trip09/symfony-standard.git","clone_url":"https://github.com/Trip09/symfony-standard.git","svn_url":"https://github.com/Trip09/symfony-standard","homepage":"symfony.com","size":983,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"2.7"}},"_links":{"self":{"href":"https://api.github.com/repos/Trip09/symfony-standard/pulls/1"},"html":{"href":"https://github.com/Trip09/symfony-standard/pull/1"},"issue":{"href":"https://api.github.com/repos/Trip09/symfony-standard/issues/1"},"comments":{"href":"https://api.github.com/repos/Trip09/symfony-standard/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Trip09/symfony-standard/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Trip09/symfony-standard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Trip09/symfony-standard/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Trip09/symfony-standard/statuses/0237330030f2efa56fb5512c5ae5053fbc616616"}}}}