{"action":"created","comment":{"url":"https://api.github.com/repos/cakephp/migrations/pulls/comments/31866906","id":31866906,"diff_hunk":"@@ -166,9 +166,15 @@ public function setInput(InputInterface $input)\n     public function bootstrap(InputInterface $input, OutputInterface $output)\n     {\n         parent::bootstrap($input, $output);\n-        $connection = ConnectionManager::get($this->getConnectionName($input));\n-        $pdo = $this->getManager()->getEnvironment('default')->getAdapter()->getConnection();\n-        $connection->driver()->connection($pdo);\n+        $name = $this->getConnectionName($input);\n+        ConnectionManager::alias($name, 'default');\n+        $connection = ConnectionManager::get($name);","path":"src/ConfigurationTrait.php","position":9,"original_position":9,"commit_id":"12f5c8e9943493c5158a0ded7ebb9a3f4b8712b5","original_commit_id":"12f5c8e9943493c5158a0ded7ebb9a3f4b8712b5","user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"body":"If you invoke the migrations shell passing a custom connection argument, you would expect that using any table class would automatically default to that custom connection instead of another.","created_at":"2015-06-06T10:36:37Z","updated_at":"2015-06-06T10:36:37Z","html_url":"https://github.com/cakephp/migrations/pull/91#discussion_r31866906","pull_request_url":"https://api.github.com/repos/cakephp/migrations/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/cakephp/migrations/pulls/comments/31866906"},"html":{"href":"https://github.com/cakephp/migrations/pull/91#discussion_r31866906"},"pull_request":{"href":"https://api.github.com/repos/cakephp/migrations/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/cakephp/migrations/pulls/91","id":37076283,"html_url":"https://github.com/cakephp/migrations/pull/91","diff_url":"https://github.com/cakephp/migrations/pull/91.diff","patch_url":"https://github.com/cakephp/migrations/pull/91.patch","issue_url":"https://api.github.com/repos/cakephp/migrations/issues/91","number":91,"state":"open","locked":false,"title":"Using our own adapter to avoid issues with transactions.","user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"body":"Also aliasing the 'default' connection so that seeding databases can work\r\nmore seamlessly.\r\n\r\nFixes #83","created_at":"2015-06-05T22:38:15Z","updated_at":"2015-06-06T10:36:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78e47e3506ec504a719471ad3459f9b240b06e31","assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/migrations/milestones/4","html_url":"https://github.com/cakephp/migrations/milestones/1.1.2","labels_url":"https://api.github.com/repos/cakephp/migrations/milestones/4/labels","id":1148538,"number":4,"title":"1.1.2","description":"Bugfixes and small improvements for the 1.1 branch.","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","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":7,"closed_issues":2,"state":"open","created_at":"2015-06-04T01:36:56Z","updated_at":"2015-06-06T00:49:35Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/cakephp/migrations/pulls/91/commits","review_comments_url":"https://api.github.com/repos/cakephp/migrations/pulls/91/comments","review_comment_url":"https://api.github.com/repos/cakephp/migrations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cakephp/migrations/issues/91/comments","statuses_url":"https://api.github.com/repos/cakephp/migrations/statuses/12f5c8e9943493c5158a0ded7ebb9a3f4b8712b5","head":{"label":"cakephp:fix-83","ref":"fix-83","sha":"12f5c8e9943493c5158a0ded7ebb9a3f4b8712b5","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","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":23262129,"name":"migrations","full_name":"cakephp/migrations","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","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/migrations","description":"CakePHP 3.0 database migrations plugin","fork":false,"url":"https://api.github.com/repos/cakephp/migrations","forks_url":"https://api.github.com/repos/cakephp/migrations/forks","keys_url":"https://api.github.com/repos/cakephp/migrations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/migrations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/migrations/teams","hooks_url":"https://api.github.com/repos/cakephp/migrations/hooks","issue_events_url":"https://api.github.com/repos/cakephp/migrations/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/migrations/events","assignees_url":"https://api.github.com/repos/cakephp/migrations/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/migrations/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/migrations/tags","blobs_url":"https://api.github.com/repos/cakephp/migrations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/migrations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/migrations/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/migrations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/migrations/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/migrations/languages","stargazers_url":"https://api.github.com/repos/cakephp/migrations/stargazers","contributors_url":"https://api.github.com/repos/cakephp/migrations/contributors","subscribers_url":"https://api.github.com/repos/cakephp/migrations/subscribers","subscription_url":"https://api.github.com/repos/cakephp/migrations/subscription","commits_url":"https://api.github.com/repos/cakephp/migrations/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/migrations/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/migrations/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/migrations/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/migrations/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/migrations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/migrations/merges","archive_url":"https://api.github.com/repos/cakephp/migrations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/migrations/downloads","issues_url":"https://api.github.com/repos/cakephp/migrations/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/migrations/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/migrations/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/migrations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/migrations/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/migrations/releases{/id}","created_at":"2014-08-23T17:40:26Z","updated_at":"2015-06-05T03:51:28Z","pushed_at":"2015-06-05T22:55:16Z","git_url":"git://github.com/cakephp/migrations.git","ssh_url":"git@github.com:cakephp/migrations.git","clone_url":"https://github.com/cakephp/migrations.git","svn_url":"https://github.com/cakephp/migrations","homepage":null,"size":763,"stargazers_count":47,"watchers_count":47,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":9,"forks":19,"open_issues":9,"watchers":47,"default_branch":"master"}},"base":{"label":"cakephp:master","ref":"master","sha":"b5758f5b62569d9de4f9a6bb81f4f868a87b3060","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","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":23262129,"name":"migrations","full_name":"cakephp/migrations","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","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/migrations","description":"CakePHP 3.0 database migrations plugin","fork":false,"url":"https://api.github.com/repos/cakephp/migrations","forks_url":"https://api.github.com/repos/cakephp/migrations/forks","keys_url":"https://api.github.com/repos/cakephp/migrations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/migrations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/migrations/teams","hooks_url":"https://api.github.com/repos/cakephp/migrations/hooks","issue_events_url":"https://api.github.com/repos/cakephp/migrations/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/migrations/events","assignees_url":"https://api.github.com/repos/cakephp/migrations/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/migrations/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/migrations/tags","blobs_url":"https://api.github.com/repos/cakephp/migrations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/migrations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/migrations/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/migrations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/migrations/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/migrations/languages","stargazers_url":"https://api.github.com/repos/cakephp/migrations/stargazers","contributors_url":"https://api.github.com/repos/cakephp/migrations/contributors","subscribers_url":"https://api.github.com/repos/cakephp/migrations/subscribers","subscription_url":"https://api.github.com/repos/cakephp/migrations/subscription","commits_url":"https://api.github.com/repos/cakephp/migrations/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/migrations/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/migrations/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/migrations/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/migrations/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/migrations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/migrations/merges","archive_url":"https://api.github.com/repos/cakephp/migrations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/migrations/downloads","issues_url":"https://api.github.com/repos/cakephp/migrations/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/migrations/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/migrations/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/migrations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/migrations/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/migrations/releases{/id}","created_at":"2014-08-23T17:40:26Z","updated_at":"2015-06-05T03:51:28Z","pushed_at":"2015-06-05T22:55:16Z","git_url":"git://github.com/cakephp/migrations.git","ssh_url":"git@github.com:cakephp/migrations.git","clone_url":"https://github.com/cakephp/migrations.git","svn_url":"https://github.com/cakephp/migrations","homepage":null,"size":763,"stargazers_count":47,"watchers_count":47,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":9,"forks":19,"open_issues":9,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/migrations/pulls/91"},"html":{"href":"https://github.com/cakephp/migrations/pull/91"},"issue":{"href":"https://api.github.com/repos/cakephp/migrations/issues/91"},"comments":{"href":"https://api.github.com/repos/cakephp/migrations/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/migrations/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/migrations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cakephp/migrations/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/migrations/statuses/12f5c8e9943493c5158a0ded7ebb9a3f4b8712b5"}}}}