{"action":"created","comment":{"url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls/comments/94280799","pull_request_review_id":14810693,"id":94280799,"diff_hunk":"@@ -307,6 +307,20 @@ public function removeCol($alias)\n \n     /**\n      *\n+     * Has the column or alias been added to the query?\n+     *\n+     * @param string $alias The column or alias to look for\n+     *\n+     * @return bool\n+     *\n+     */\n+    public function hasCol($alias)\n+    {\n+        return isset($this->cols[$alias]) || array_search($alias, $this->cols) !== false;","path":"src/Common/Select.php","position":32,"original_position":13,"commit_id":"9fb886d8955663988cdfb5c371416ccdc7cdbe27","original_commit_id":"9fb886d8955663988cdfb5c371416ccdc7cdbe27","user":{"login":"pavarnos","id":589595,"avatar_url":"https://avatars.githubusercontent.com/u/589595?v=3","gravatar_id":"","url":"https://api.github.com/users/pavarnos","html_url":"https://github.com/pavarnos","followers_url":"https://api.github.com/users/pavarnos/followers","following_url":"https://api.github.com/users/pavarnos/following{/other_user}","gists_url":"https://api.github.com/users/pavarnos/gists{/gist_id}","starred_url":"https://api.github.com/users/pavarnos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavarnos/subscriptions","organizations_url":"https://api.github.com/users/pavarnos/orgs","repos_url":"https://api.github.com/users/pavarnos/repos","events_url":"https://api.github.com/users/pavarnos/events{/privacy}","received_events_url":"https://api.github.com/users/pavarnos/received_events","type":"User","site_admin":false},"body":"see https://github.com/auraphp/Aura.SqlQuery/pull/112/files/9fb886d8955663988cdfb5c371416ccdc7cdbe27#diff-1e1715bbfd6b71bb485e70bb72002475R99. cols() can add a column or an alias. This finds both, similar to how removeCol() works.","created_at":"2017-01-01T07:52:15Z","updated_at":"2017-01-01T07:52:15Z","html_url":"https://github.com/auraphp/Aura.SqlQuery/pull/112#discussion_r94280799","pull_request_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls/112","_links":{"self":{"href":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls/comments/94280799"},"html":{"href":"https://github.com/auraphp/Aura.SqlQuery/pull/112#discussion_r94280799"},"pull_request":{"href":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls/112","id":99730441,"html_url":"https://github.com/auraphp/Aura.SqlQuery/pull/112","diff_url":"https://github.com/auraphp/Aura.SqlQuery/pull/112.diff","patch_url":"https://github.com/auraphp/Aura.SqlQuery/pull/112.patch","issue_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/issues/112","number":112,"state":"open","locked":false,"title":"add missing public methods to SelectInterface and related.","user":{"login":"pavarnos","id":589595,"avatar_url":"https://avatars.githubusercontent.com/u/589595?v=3","gravatar_id":"","url":"https://api.github.com/users/pavarnos","html_url":"https://github.com/pavarnos","followers_url":"https://api.github.com/users/pavarnos/followers","following_url":"https://api.github.com/users/pavarnos/following{/other_user}","gists_url":"https://api.github.com/users/pavarnos/gists{/gist_id}","starred_url":"https://api.github.com/users/pavarnos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavarnos/subscriptions","organizations_url":"https://api.github.com/users/pavarnos/orgs","repos_url":"https://api.github.com/users/pavarnos/repos","events_url":"https://api.github.com/users/pavarnos/events{/privacy}","received_events_url":"https://api.github.com/users/pavarnos/received_events","type":"User","site_admin":false},"body":"make reset() public and add isDistinct() to round out the interface.","created_at":"2016-12-30T08:08:16Z","updated_at":"2017-01-01T07:52:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2899479b17db588ef9a666070d7462d349f208e2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls/112/commits","review_comments_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls/112/comments","review_comment_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/issues/112/comments","statuses_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/statuses/9fb886d8955663988cdfb5c371416ccdc7cdbe27","head":{"label":"pavarnos:selectinterface","ref":"selectinterface","sha":"9fb886d8955663988cdfb5c371416ccdc7cdbe27","user":{"login":"pavarnos","id":589595,"avatar_url":"https://avatars.githubusercontent.com/u/589595?v=3","gravatar_id":"","url":"https://api.github.com/users/pavarnos","html_url":"https://github.com/pavarnos","followers_url":"https://api.github.com/users/pavarnos/followers","following_url":"https://api.github.com/users/pavarnos/following{/other_user}","gists_url":"https://api.github.com/users/pavarnos/gists{/gist_id}","starred_url":"https://api.github.com/users/pavarnos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavarnos/subscriptions","organizations_url":"https://api.github.com/users/pavarnos/orgs","repos_url":"https://api.github.com/users/pavarnos/repos","events_url":"https://api.github.com/users/pavarnos/events{/privacy}","received_events_url":"https://api.github.com/users/pavarnos/received_events","type":"User","site_admin":false},"repo":{"id":77650052,"name":"Aura.SqlQuery","full_name":"pavarnos/Aura.SqlQuery","owner":{"login":"pavarnos","id":589595,"avatar_url":"https://avatars.githubusercontent.com/u/589595?v=3","gravatar_id":"","url":"https://api.github.com/users/pavarnos","html_url":"https://github.com/pavarnos","followers_url":"https://api.github.com/users/pavarnos/followers","following_url":"https://api.github.com/users/pavarnos/following{/other_user}","gists_url":"https://api.github.com/users/pavarnos/gists{/gist_id}","starred_url":"https://api.github.com/users/pavarnos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavarnos/subscriptions","organizations_url":"https://api.github.com/users/pavarnos/orgs","repos_url":"https://api.github.com/users/pavarnos/repos","events_url":"https://api.github.com/users/pavarnos/events{/privacy}","received_events_url":"https://api.github.com/users/pavarnos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pavarnos/Aura.SqlQuery","description":"Independent query builders for MySQL, PostgreSQL, SQLite, and Microsoft SQL Server.","fork":true,"url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery","forks_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/forks","keys_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/teams","hooks_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/hooks","issue_events_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/issues/events{/number}","events_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/events","assignees_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/assignees{/user}","branches_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/branches{/branch}","tags_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/tags","blobs_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/git/refs{/sha}","trees_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/statuses/{sha}","languages_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/languages","stargazers_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/stargazers","contributors_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/contributors","subscribers_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/subscribers","subscription_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/subscription","commits_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/commits{/sha}","git_commits_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/git/commits{/sha}","comments_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/comments{/number}","issue_comment_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/issues/comments{/number}","contents_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/contents/{+path}","compare_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/merges","archive_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/downloads","issues_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/issues{/number}","pulls_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/pulls{/number}","milestones_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/milestones{/number}","notifications_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/labels{/name}","releases_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/releases{/id}","deployments_url":"https://api.github.com/repos/pavarnos/Aura.SqlQuery/deployments","created_at":"2016-12-30T01:15:27Z","updated_at":"2016-12-30T01:15:29Z","pushed_at":"2017-01-01T07:46:15Z","git_url":"git://github.com/pavarnos/Aura.SqlQuery.git","ssh_url":"git@github.com:pavarnos/Aura.SqlQuery.git","clone_url":"https://github.com/pavarnos/Aura.SqlQuery.git","svn_url":"https://github.com/pavarnos/Aura.SqlQuery","homepage":null,"size":946,"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.x"}},"base":{"label":"auraphp:3.x","ref":"3.x","sha":"dd81b57aeb43628180a9c70a4df58d872024d7f2","user":{"login":"auraphp","id":611900,"avatar_url":"https://avatars.githubusercontent.com/u/611900?v=3","gravatar_id":"","url":"https://api.github.com/users/auraphp","html_url":"https://github.com/auraphp","followers_url":"https://api.github.com/users/auraphp/followers","following_url":"https://api.github.com/users/auraphp/following{/other_user}","gists_url":"https://api.github.com/users/auraphp/gists{/gist_id}","starred_url":"https://api.github.com/users/auraphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auraphp/subscriptions","organizations_url":"https://api.github.com/users/auraphp/orgs","repos_url":"https://api.github.com/users/auraphp/repos","events_url":"https://api.github.com/users/auraphp/events{/privacy}","received_events_url":"https://api.github.com/users/auraphp/received_events","type":"Organization","site_admin":false},"repo":{"id":13157487,"name":"Aura.SqlQuery","full_name":"auraphp/Aura.SqlQuery","owner":{"login":"auraphp","id":611900,"avatar_url":"https://avatars.githubusercontent.com/u/611900?v=3","gravatar_id":"","url":"https://api.github.com/users/auraphp","html_url":"https://github.com/auraphp","followers_url":"https://api.github.com/users/auraphp/followers","following_url":"https://api.github.com/users/auraphp/following{/other_user}","gists_url":"https://api.github.com/users/auraphp/gists{/gist_id}","starred_url":"https://api.github.com/users/auraphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auraphp/subscriptions","organizations_url":"https://api.github.com/users/auraphp/orgs","repos_url":"https://api.github.com/users/auraphp/repos","events_url":"https://api.github.com/users/auraphp/events{/privacy}","received_events_url":"https://api.github.com/users/auraphp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/auraphp/Aura.SqlQuery","description":"Independent query builders for MySQL, PostgreSQL, SQLite, and Microsoft SQL Server.","fork":false,"url":"https://api.github.com/repos/auraphp/Aura.SqlQuery","forks_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/forks","keys_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/teams","hooks_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/hooks","issue_events_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/issues/events{/number}","events_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/events","assignees_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/assignees{/user}","branches_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/branches{/branch}","tags_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/tags","blobs_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/git/refs{/sha}","trees_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/statuses/{sha}","languages_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/languages","stargazers_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/stargazers","contributors_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/contributors","subscribers_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/subscribers","subscription_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/subscription","commits_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/commits{/sha}","git_commits_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/git/commits{/sha}","comments_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/comments{/number}","issue_comment_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/issues/comments{/number}","contents_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/contents/{+path}","compare_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/merges","archive_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/downloads","issues_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/issues{/number}","pulls_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls{/number}","milestones_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/milestones{/number}","notifications_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/labels{/name}","releases_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/releases{/id}","deployments_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/deployments","created_at":"2013-09-27T18:08:03Z","updated_at":"2016-12-28T05:28:32Z","pushed_at":"2017-01-01T07:48:48Z","git_url":"git://github.com/auraphp/Aura.SqlQuery.git","ssh_url":"git@github.com:auraphp/Aura.SqlQuery.git","clone_url":"https://github.com/auraphp/Aura.SqlQuery.git","svn_url":"https://github.com/auraphp/Aura.SqlQuery","homepage":null,"size":944,"stargazers_count":198,"watchers_count":198,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":6,"forks":52,"open_issues":6,"watchers":198,"default_branch":"2.x"}},"_links":{"self":{"href":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls/112"},"html":{"href":"https://github.com/auraphp/Aura.SqlQuery/pull/112"},"issue":{"href":"https://api.github.com/repos/auraphp/Aura.SqlQuery/issues/112"},"comments":{"href":"https://api.github.com/repos/auraphp/Aura.SqlQuery/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls/112/comments"},"review_comment":{"href":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls/112/commits"},"statuses":{"href":"https://api.github.com/repos/auraphp/Aura.SqlQuery/statuses/9fb886d8955663988cdfb5c371416ccdc7cdbe27"}}}}
{"actor":{"display_login":"pavarnos"}}