{"action":"created","comment":{"url":"https://api.github.com/repos/openemr/openemr/pulls/comments/89582262","pull_request_review_id":10126920,"id":89582262,"diff_hunk":"@@ -0,0 +1,107 @@\n+<?php\n+/**\n+ * This singleton class provides a pooled Doctrine connection to consumers. All connection data\n+ * is configurable via sqlconf.php.\n+ *\n+ * If needed, the instance can be used in a transactional context:\n+ * <code>\n+ *     $database = \\common\\database\\Connector::Instance();\n+ *     $entityManager = $database->entityManager;\n+ *     $entityManager->getConnection()->beginTransaction();\n+ *     try {\n+ *         // Entity work here...\n+ *         $entityManager->persist($someEntityToBePersisted);\n+ *         $entityManager->flush();\n+ *         $entityManager->getConnection()->commit();\n+ *     } catch (Exception $e) {\n+ *         $entityManager->getConnection()->rollBack();\n+ *         throw $e;\n+ *     }\n+ * </code>\n+ *","path":"common/database/connector.php","position":21,"original_position":21,"commit_id":"d7d907ae4302b8fb61af37e0cbdbb90bd19c80b3","original_commit_id":"01860215bd36c843a5ae1504fce7f193fcf8f0fc","user":{"login":"bradymiller","id":278968,"avatar_url":"https://avatars.githubusercontent.com/u/278968?v=3","gravatar_id":"","url":"https://api.github.com/users/bradymiller","html_url":"https://github.com/bradymiller","followers_url":"https://api.github.com/users/bradymiller/followers","following_url":"https://api.github.com/users/bradymiller/following{/other_user}","gists_url":"https://api.github.com/users/bradymiller/gists{/gist_id}","starred_url":"https://api.github.com/users/bradymiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradymiller/subscriptions","organizations_url":"https://api.github.com/users/bradymiller/orgs","repos_url":"https://api.github.com/users/bradymiller/repos","events_url":"https://api.github.com/users/bradymiller/events{/privacy}","received_events_url":"https://api.github.com/users/bradymiller/received_events","type":"User","site_admin":false},"body":"Place your copyright here.","created_at":"2016-11-25T08:57:24Z","updated_at":"2016-11-25T08:57:24Z","html_url":"https://github.com/openemr/openemr/pull/357#discussion_r89582262","pull_request_url":"https://api.github.com/repos/openemr/openemr/pulls/357","_links":{"self":{"href":"https://api.github.com/repos/openemr/openemr/pulls/comments/89582262"},"html":{"href":"https://github.com/openemr/openemr/pull/357#discussion_r89582262"},"pull_request":{"href":"https://api.github.com/repos/openemr/openemr/pulls/357"}}},"pull_request":{"url":"https://api.github.com/repos/openemr/openemr/pulls/357","id":95241564,"html_url":"https://github.com/openemr/openemr/pull/357","diff_url":"https://github.com/openemr/openemr/pull/357.diff","patch_url":"https://github.com/openemr/openemr/pull/357.patch","issue_url":"https://api.github.com/repos/openemr/openemr/issues/357","number":357,"state":"open","locked":false,"title":"WIP: Doctrine and other modernization work","user":{"login":"MatthewVita","id":1715206,"avatar_url":"https://avatars.githubusercontent.com/u/1715206?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthewVita","html_url":"https://github.com/MatthewVita","followers_url":"https://api.github.com/users/MatthewVita/followers","following_url":"https://api.github.com/users/MatthewVita/following{/other_user}","gists_url":"https://api.github.com/users/MatthewVita/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthewVita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthewVita/subscriptions","organizations_url":"https://api.github.com/users/MatthewVita/orgs","repos_url":"https://api.github.com/users/MatthewVita/repos","events_url":"https://api.github.com/users/MatthewVita/events{/privacy}","received_events_url":"https://api.github.com/users/MatthewVita/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-25T02:06:30Z","updated_at":"2016-11-25T08:57:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e56e5d9dbb0d425a801a9d348beb846edef35dbb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openemr/openemr/pulls/357/commits","review_comments_url":"https://api.github.com/repos/openemr/openemr/pulls/357/comments","review_comment_url":"https://api.github.com/repos/openemr/openemr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openemr/openemr/issues/357/comments","statuses_url":"https://api.github.com/repos/openemr/openemr/statuses/d7d907ae4302b8fb61af37e0cbdbb90bd19c80b3","head":{"label":"MatthewVita:doctrine_and_other_moderization_work","ref":"doctrine_and_other_moderization_work","sha":"d7d907ae4302b8fb61af37e0cbdbb90bd19c80b3","user":{"login":"MatthewVita","id":1715206,"avatar_url":"https://avatars.githubusercontent.com/u/1715206?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthewVita","html_url":"https://github.com/MatthewVita","followers_url":"https://api.github.com/users/MatthewVita/followers","following_url":"https://api.github.com/users/MatthewVita/following{/other_user}","gists_url":"https://api.github.com/users/MatthewVita/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthewVita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthewVita/subscriptions","organizations_url":"https://api.github.com/users/MatthewVita/orgs","repos_url":"https://api.github.com/users/MatthewVita/repos","events_url":"https://api.github.com/users/MatthewVita/events{/privacy}","received_events_url":"https://api.github.com/users/MatthewVita/received_events","type":"User","site_admin":false},"repo":{"id":74717141,"name":"openemr","full_name":"MatthewVita/openemr","owner":{"login":"MatthewVita","id":1715206,"avatar_url":"https://avatars.githubusercontent.com/u/1715206?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthewVita","html_url":"https://github.com/MatthewVita","followers_url":"https://api.github.com/users/MatthewVita/followers","following_url":"https://api.github.com/users/MatthewVita/following{/other_user}","gists_url":"https://api.github.com/users/MatthewVita/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthewVita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthewVita/subscriptions","organizations_url":"https://api.github.com/users/MatthewVita/orgs","repos_url":"https://api.github.com/users/MatthewVita/repos","events_url":"https://api.github.com/users/MatthewVita/events{/privacy}","received_events_url":"https://api.github.com/users/MatthewVita/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MatthewVita/openemr","description":"Mirror of official OpenEMR Sourceforge repository","fork":true,"url":"https://api.github.com/repos/MatthewVita/openemr","forks_url":"https://api.github.com/repos/MatthewVita/openemr/forks","keys_url":"https://api.github.com/repos/MatthewVita/openemr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MatthewVita/openemr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MatthewVita/openemr/teams","hooks_url":"https://api.github.com/repos/MatthewVita/openemr/hooks","issue_events_url":"https://api.github.com/repos/MatthewVita/openemr/issues/events{/number}","events_url":"https://api.github.com/repos/MatthewVita/openemr/events","assignees_url":"https://api.github.com/repos/MatthewVita/openemr/assignees{/user}","branches_url":"https://api.github.com/repos/MatthewVita/openemr/branches{/branch}","tags_url":"https://api.github.com/repos/MatthewVita/openemr/tags","blobs_url":"https://api.github.com/repos/MatthewVita/openemr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MatthewVita/openemr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MatthewVita/openemr/git/refs{/sha}","trees_url":"https://api.github.com/repos/MatthewVita/openemr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MatthewVita/openemr/statuses/{sha}","languages_url":"https://api.github.com/repos/MatthewVita/openemr/languages","stargazers_url":"https://api.github.com/repos/MatthewVita/openemr/stargazers","contributors_url":"https://api.github.com/repos/MatthewVita/openemr/contributors","subscribers_url":"https://api.github.com/repos/MatthewVita/openemr/subscribers","subscription_url":"https://api.github.com/repos/MatthewVita/openemr/subscription","commits_url":"https://api.github.com/repos/MatthewVita/openemr/commits{/sha}","git_commits_url":"https://api.github.com/repos/MatthewVita/openemr/git/commits{/sha}","comments_url":"https://api.github.com/repos/MatthewVita/openemr/comments{/number}","issue_comment_url":"https://api.github.com/repos/MatthewVita/openemr/issues/comments{/number}","contents_url":"https://api.github.com/repos/MatthewVita/openemr/contents/{+path}","compare_url":"https://api.github.com/repos/MatthewVita/openemr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MatthewVita/openemr/merges","archive_url":"https://api.github.com/repos/MatthewVita/openemr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MatthewVita/openemr/downloads","issues_url":"https://api.github.com/repos/MatthewVita/openemr/issues{/number}","pulls_url":"https://api.github.com/repos/MatthewVita/openemr/pulls{/number}","milestones_url":"https://api.github.com/repos/MatthewVita/openemr/milestones{/number}","notifications_url":"https://api.github.com/repos/MatthewVita/openemr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MatthewVita/openemr/labels{/name}","releases_url":"https://api.github.com/repos/MatthewVita/openemr/releases{/id}","deployments_url":"https://api.github.com/repos/MatthewVita/openemr/deployments","created_at":"2016-11-25T01:56:33Z","updated_at":"2016-11-25T01:56:52Z","pushed_at":"2016-11-25T02:05:38Z","git_url":"git://github.com/MatthewVita/openemr.git","ssh_url":"git@github.com:MatthewVita/openemr.git","clone_url":"https://github.com/MatthewVita/openemr.git","svn_url":"https://github.com/MatthewVita/openemr","homepage":"http://open-emr.org/","size":278656,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":false,"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":"master"}},"base":{"label":"openemr:master","ref":"master","sha":"313302576be0c4db6a7db91c46da6746fa23972e","user":{"login":"openemr","id":283089,"avatar_url":"https://avatars.githubusercontent.com/u/283089?v=3","gravatar_id":"","url":"https://api.github.com/users/openemr","html_url":"https://github.com/openemr","followers_url":"https://api.github.com/users/openemr/followers","following_url":"https://api.github.com/users/openemr/following{/other_user}","gists_url":"https://api.github.com/users/openemr/gists{/gist_id}","starred_url":"https://api.github.com/users/openemr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openemr/subscriptions","organizations_url":"https://api.github.com/users/openemr/orgs","repos_url":"https://api.github.com/users/openemr/repos","events_url":"https://api.github.com/users/openemr/events{/privacy}","received_events_url":"https://api.github.com/users/openemr/received_events","type":"Organization","site_admin":false},"repo":{"id":679584,"name":"openemr","full_name":"openemr/openemr","owner":{"login":"openemr","id":283089,"avatar_url":"https://avatars.githubusercontent.com/u/283089?v=3","gravatar_id":"","url":"https://api.github.com/users/openemr","html_url":"https://github.com/openemr","followers_url":"https://api.github.com/users/openemr/followers","following_url":"https://api.github.com/users/openemr/following{/other_user}","gists_url":"https://api.github.com/users/openemr/gists{/gist_id}","starred_url":"https://api.github.com/users/openemr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openemr/subscriptions","organizations_url":"https://api.github.com/users/openemr/orgs","repos_url":"https://api.github.com/users/openemr/repos","events_url":"https://api.github.com/users/openemr/events{/privacy}","received_events_url":"https://api.github.com/users/openemr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openemr/openemr","description":"Mirror of official OpenEMR Sourceforge repository","fork":false,"url":"https://api.github.com/repos/openemr/openemr","forks_url":"https://api.github.com/repos/openemr/openemr/forks","keys_url":"https://api.github.com/repos/openemr/openemr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openemr/openemr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openemr/openemr/teams","hooks_url":"https://api.github.com/repos/openemr/openemr/hooks","issue_events_url":"https://api.github.com/repos/openemr/openemr/issues/events{/number}","events_url":"https://api.github.com/repos/openemr/openemr/events","assignees_url":"https://api.github.com/repos/openemr/openemr/assignees{/user}","branches_url":"https://api.github.com/repos/openemr/openemr/branches{/branch}","tags_url":"https://api.github.com/repos/openemr/openemr/tags","blobs_url":"https://api.github.com/repos/openemr/openemr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openemr/openemr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openemr/openemr/git/refs{/sha}","trees_url":"https://api.github.com/repos/openemr/openemr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openemr/openemr/statuses/{sha}","languages_url":"https://api.github.com/repos/openemr/openemr/languages","stargazers_url":"https://api.github.com/repos/openemr/openemr/stargazers","contributors_url":"https://api.github.com/repos/openemr/openemr/contributors","subscribers_url":"https://api.github.com/repos/openemr/openemr/subscribers","subscription_url":"https://api.github.com/repos/openemr/openemr/subscription","commits_url":"https://api.github.com/repos/openemr/openemr/commits{/sha}","git_commits_url":"https://api.github.com/repos/openemr/openemr/git/commits{/sha}","comments_url":"https://api.github.com/repos/openemr/openemr/comments{/number}","issue_comment_url":"https://api.github.com/repos/openemr/openemr/issues/comments{/number}","contents_url":"https://api.github.com/repos/openemr/openemr/contents/{+path}","compare_url":"https://api.github.com/repos/openemr/openemr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openemr/openemr/merges","archive_url":"https://api.github.com/repos/openemr/openemr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openemr/openemr/downloads","issues_url":"https://api.github.com/repos/openemr/openemr/issues{/number}","pulls_url":"https://api.github.com/repos/openemr/openemr/pulls{/number}","milestones_url":"https://api.github.com/repos/openemr/openemr/milestones{/number}","notifications_url":"https://api.github.com/repos/openemr/openemr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openemr/openemr/labels{/name}","releases_url":"https://api.github.com/repos/openemr/openemr/releases{/id}","deployments_url":"https://api.github.com/repos/openemr/openemr/deployments","created_at":"2010-05-21T19:54:08Z","updated_at":"2016-11-24T21:32:59Z","pushed_at":"2016-11-25T02:06:30Z","git_url":"git://github.com/openemr/openemr.git","ssh_url":"git@github.com:openemr/openemr.git","clone_url":"https://github.com/openemr/openemr.git","svn_url":"https://github.com/openemr/openemr","homepage":"http://open-emr.org/","size":310157,"stargazers_count":314,"watchers_count":314,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":470,"mirror_url":null,"open_issues_count":51,"forks":470,"open_issues":51,"watchers":314,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openemr/openemr/pulls/357"},"html":{"href":"https://github.com/openemr/openemr/pull/357"},"issue":{"href":"https://api.github.com/repos/openemr/openemr/issues/357"},"comments":{"href":"https://api.github.com/repos/openemr/openemr/issues/357/comments"},"review_comments":{"href":"https://api.github.com/repos/openemr/openemr/pulls/357/comments"},"review_comment":{"href":"https://api.github.com/repos/openemr/openemr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openemr/openemr/pulls/357/commits"},"statuses":{"href":"https://api.github.com/repos/openemr/openemr/statuses/d7d907ae4302b8fb61af37e0cbdbb90bd19c80b3"}}}}
{"actor":{"display_login":"bradymiller"}}