{"action":"created","comment":{"url":"https://api.github.com/repos/shopware/SwagConnect/pulls/comments/72251966","id":72251966,"diff_hunk":"@@ -71,4 +71,55 @@ public function countProductsWithoutConfiguredPrice(Group $group = null, $priceF\n \n         return (int)$query->fetchColumn();\n     }\n+\n+    /**\n+     * Returns count of product with\n+     * configured price\n+     *\n+     * @param Group $group\n+     * @param $priceField\n+     * @return array\n+     * @throws \\Zend_Db_Statement_Exception\n+     */\n+    public function countProductsWithConfiguredPrice(Group $group = null, $priceField)\n+    {\n+        if ($priceField == 'detailPurchasePrice') {\n+            $query = Shopware()->Db()->query(\"","path":"Components/PriceGateway.php","position":17,"original_position":17,"commit_id":"0719e86349f2ebdca41aa61adc54896f1d20878b","original_commit_id":"0719e86349f2ebdca41aa61adc54896f1d20878b","user":{"login":"sbofirov","id":1742744,"avatar_url":"https://avatars.githubusercontent.com/u/1742744?v=3","gravatar_id":"","url":"https://api.github.com/users/sbofirov","html_url":"https://github.com/sbofirov","followers_url":"https://api.github.com/users/sbofirov/followers","following_url":"https://api.github.com/users/sbofirov/following{/other_user}","gists_url":"https://api.github.com/users/sbofirov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbofirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbofirov/subscriptions","organizations_url":"https://api.github.com/users/sbofirov/orgs","repos_url":"https://api.github.com/users/sbofirov/repos","events_url":"https://api.github.com/users/sbofirov/events{/privacy}","received_events_url":"https://api.github.com/users/sbofirov/received_events","type":"User","site_admin":false},"body":"please try to use ```$this->db``` instead of ```Shopware()->Db()```","created_at":"2016-07-26T13:48:39Z","updated_at":"2016-07-26T13:48:39Z","html_url":"https://github.com/shopware/SwagConnect/pull/122#discussion_r72251966","pull_request_url":"https://api.github.com/repos/shopware/SwagConnect/pulls/122","_links":{"self":{"href":"https://api.github.com/repos/shopware/SwagConnect/pulls/comments/72251966"},"html":{"href":"https://github.com/shopware/SwagConnect/pull/122#discussion_r72251966"},"pull_request":{"href":"https://api.github.com/repos/shopware/SwagConnect/pulls/122"}}},"pull_request":{"url":"https://api.github.com/repos/shopware/SwagConnect/pulls/122","id":78838759,"html_url":"https://github.com/shopware/SwagConnect/pull/122","diff_url":"https://github.com/shopware/SwagConnect/pull/122.diff","patch_url":"https://github.com/shopware/SwagConnect/pull/122.patch","issue_url":"https://api.github.com/repos/shopware/SwagConnect/issues/122","number":122,"state":"open","locked":false,"title":"CON-3489 Added product calculation to the price config tables","user":{"login":"StefanStefanoff","id":8055609,"avatar_url":"https://avatars.githubusercontent.com/u/8055609?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanStefanoff","html_url":"https://github.com/StefanStefanoff","followers_url":"https://api.github.com/users/StefanStefanoff/followers","following_url":"https://api.github.com/users/StefanStefanoff/following{/other_user}","gists_url":"https://api.github.com/users/StefanStefanoff/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanStefanoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanStefanoff/subscriptions","organizations_url":"https://api.github.com/users/StefanStefanoff/orgs","repos_url":"https://api.github.com/users/StefanStefanoff/repos","events_url":"https://api.github.com/users/StefanStefanoff/events{/privacy}","received_events_url":"https://api.github.com/users/StefanStefanoff/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-26T11:58:35Z","updated_at":"2016-07-26T13:48:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"103bb17621e7b847ba54d07c6b7759b916621cc0","assignee":{"login":"sbofirov","id":1742744,"avatar_url":"https://avatars.githubusercontent.com/u/1742744?v=3","gravatar_id":"","url":"https://api.github.com/users/sbofirov","html_url":"https://github.com/sbofirov","followers_url":"https://api.github.com/users/sbofirov/followers","following_url":"https://api.github.com/users/sbofirov/following{/other_user}","gists_url":"https://api.github.com/users/sbofirov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbofirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbofirov/subscriptions","organizations_url":"https://api.github.com/users/sbofirov/orgs","repos_url":"https://api.github.com/users/sbofirov/repos","events_url":"https://api.github.com/users/sbofirov/events{/privacy}","received_events_url":"https://api.github.com/users/sbofirov/received_events","type":"User","site_admin":false},"assignees":[{"login":"sbofirov","id":1742744,"avatar_url":"https://avatars.githubusercontent.com/u/1742744?v=3","gravatar_id":"","url":"https://api.github.com/users/sbofirov","html_url":"https://github.com/sbofirov","followers_url":"https://api.github.com/users/sbofirov/followers","following_url":"https://api.github.com/users/sbofirov/following{/other_user}","gists_url":"https://api.github.com/users/sbofirov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbofirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbofirov/subscriptions","organizations_url":"https://api.github.com/users/sbofirov/orgs","repos_url":"https://api.github.com/users/sbofirov/repos","events_url":"https://api.github.com/users/sbofirov/events{/privacy}","received_events_url":"https://api.github.com/users/sbofirov/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/shopware/SwagConnect/pulls/122/commits","review_comments_url":"https://api.github.com/repos/shopware/SwagConnect/pulls/122/comments","review_comment_url":"https://api.github.com/repos/shopware/SwagConnect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shopware/SwagConnect/issues/122/comments","statuses_url":"https://api.github.com/repos/shopware/SwagConnect/statuses/0719e86349f2ebdca41aa61adc54896f1d20878b","head":{"label":"shopware:CON-3489-Added-product-count-to-price-table","ref":"CON-3489-Added-product-count-to-price-table","sha":"0719e86349f2ebdca41aa61adc54896f1d20878b","user":{"login":"shopware","id":612628,"avatar_url":"https://avatars.githubusercontent.com/u/612628?v=3","gravatar_id":"","url":"https://api.github.com/users/shopware","html_url":"https://github.com/shopware","followers_url":"https://api.github.com/users/shopware/followers","following_url":"https://api.github.com/users/shopware/following{/other_user}","gists_url":"https://api.github.com/users/shopware/gists{/gist_id}","starred_url":"https://api.github.com/users/shopware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopware/subscriptions","organizations_url":"https://api.github.com/users/shopware/orgs","repos_url":"https://api.github.com/users/shopware/repos","events_url":"https://api.github.com/users/shopware/events{/privacy}","received_events_url":"https://api.github.com/users/shopware/received_events","type":"Organization","site_admin":false},"repo":{"id":26867190,"name":"SwagConnect","full_name":"shopware/SwagConnect","owner":{"login":"shopware","id":612628,"avatar_url":"https://avatars.githubusercontent.com/u/612628?v=3","gravatar_id":"","url":"https://api.github.com/users/shopware","html_url":"https://github.com/shopware","followers_url":"https://api.github.com/users/shopware/followers","following_url":"https://api.github.com/users/shopware/following{/other_user}","gists_url":"https://api.github.com/users/shopware/gists{/gist_id}","starred_url":"https://api.github.com/users/shopware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopware/subscriptions","organizations_url":"https://api.github.com/users/shopware/orgs","repos_url":"https://api.github.com/users/shopware/repos","events_url":"https://api.github.com/users/shopware/events{/privacy}","received_events_url":"https://api.github.com/users/shopware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shopware/SwagConnect","description":"","fork":false,"url":"https://api.github.com/repos/shopware/SwagConnect","forks_url":"https://api.github.com/repos/shopware/SwagConnect/forks","keys_url":"https://api.github.com/repos/shopware/SwagConnect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shopware/SwagConnect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shopware/SwagConnect/teams","hooks_url":"https://api.github.com/repos/shopware/SwagConnect/hooks","issue_events_url":"https://api.github.com/repos/shopware/SwagConnect/issues/events{/number}","events_url":"https://api.github.com/repos/shopware/SwagConnect/events","assignees_url":"https://api.github.com/repos/shopware/SwagConnect/assignees{/user}","branches_url":"https://api.github.com/repos/shopware/SwagConnect/branches{/branch}","tags_url":"https://api.github.com/repos/shopware/SwagConnect/tags","blobs_url":"https://api.github.com/repos/shopware/SwagConnect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shopware/SwagConnect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shopware/SwagConnect/git/refs{/sha}","trees_url":"https://api.github.com/repos/shopware/SwagConnect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shopware/SwagConnect/statuses/{sha}","languages_url":"https://api.github.com/repos/shopware/SwagConnect/languages","stargazers_url":"https://api.github.com/repos/shopware/SwagConnect/stargazers","contributors_url":"https://api.github.com/repos/shopware/SwagConnect/contributors","subscribers_url":"https://api.github.com/repos/shopware/SwagConnect/subscribers","subscription_url":"https://api.github.com/repos/shopware/SwagConnect/subscription","commits_url":"https://api.github.com/repos/shopware/SwagConnect/commits{/sha}","git_commits_url":"https://api.github.com/repos/shopware/SwagConnect/git/commits{/sha}","comments_url":"https://api.github.com/repos/shopware/SwagConnect/comments{/number}","issue_comment_url":"https://api.github.com/repos/shopware/SwagConnect/issues/comments{/number}","contents_url":"https://api.github.com/repos/shopware/SwagConnect/contents/{+path}","compare_url":"https://api.github.com/repos/shopware/SwagConnect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shopware/SwagConnect/merges","archive_url":"https://api.github.com/repos/shopware/SwagConnect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shopware/SwagConnect/downloads","issues_url":"https://api.github.com/repos/shopware/SwagConnect/issues{/number}","pulls_url":"https://api.github.com/repos/shopware/SwagConnect/pulls{/number}","milestones_url":"https://api.github.com/repos/shopware/SwagConnect/milestones{/number}","notifications_url":"https://api.github.com/repos/shopware/SwagConnect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shopware/SwagConnect/labels{/name}","releases_url":"https://api.github.com/repos/shopware/SwagConnect/releases{/id}","deployments_url":"https://api.github.com/repos/shopware/SwagConnect/deployments","created_at":"2014-11-19T15:19:16Z","updated_at":"2016-06-18T01:40:36Z","pushed_at":"2016-07-26T13:31:15Z","git_url":"git://github.com/shopware/SwagConnect.git","ssh_url":"git@github.com:shopware/SwagConnect.git","clone_url":"https://github.com/shopware/SwagConnect.git","svn_url":"https://github.com/shopware/SwagConnect","homepage":"","size":2788,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"shopware:master","ref":"master","sha":"6c725750d12f62a8856fdcedf72e5c6053cee544","user":{"login":"shopware","id":612628,"avatar_url":"https://avatars.githubusercontent.com/u/612628?v=3","gravatar_id":"","url":"https://api.github.com/users/shopware","html_url":"https://github.com/shopware","followers_url":"https://api.github.com/users/shopware/followers","following_url":"https://api.github.com/users/shopware/following{/other_user}","gists_url":"https://api.github.com/users/shopware/gists{/gist_id}","starred_url":"https://api.github.com/users/shopware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopware/subscriptions","organizations_url":"https://api.github.com/users/shopware/orgs","repos_url":"https://api.github.com/users/shopware/repos","events_url":"https://api.github.com/users/shopware/events{/privacy}","received_events_url":"https://api.github.com/users/shopware/received_events","type":"Organization","site_admin":false},"repo":{"id":26867190,"name":"SwagConnect","full_name":"shopware/SwagConnect","owner":{"login":"shopware","id":612628,"avatar_url":"https://avatars.githubusercontent.com/u/612628?v=3","gravatar_id":"","url":"https://api.github.com/users/shopware","html_url":"https://github.com/shopware","followers_url":"https://api.github.com/users/shopware/followers","following_url":"https://api.github.com/users/shopware/following{/other_user}","gists_url":"https://api.github.com/users/shopware/gists{/gist_id}","starred_url":"https://api.github.com/users/shopware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopware/subscriptions","organizations_url":"https://api.github.com/users/shopware/orgs","repos_url":"https://api.github.com/users/shopware/repos","events_url":"https://api.github.com/users/shopware/events{/privacy}","received_events_url":"https://api.github.com/users/shopware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shopware/SwagConnect","description":"","fork":false,"url":"https://api.github.com/repos/shopware/SwagConnect","forks_url":"https://api.github.com/repos/shopware/SwagConnect/forks","keys_url":"https://api.github.com/repos/shopware/SwagConnect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shopware/SwagConnect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shopware/SwagConnect/teams","hooks_url":"https://api.github.com/repos/shopware/SwagConnect/hooks","issue_events_url":"https://api.github.com/repos/shopware/SwagConnect/issues/events{/number}","events_url":"https://api.github.com/repos/shopware/SwagConnect/events","assignees_url":"https://api.github.com/repos/shopware/SwagConnect/assignees{/user}","branches_url":"https://api.github.com/repos/shopware/SwagConnect/branches{/branch}","tags_url":"https://api.github.com/repos/shopware/SwagConnect/tags","blobs_url":"https://api.github.com/repos/shopware/SwagConnect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shopware/SwagConnect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shopware/SwagConnect/git/refs{/sha}","trees_url":"https://api.github.com/repos/shopware/SwagConnect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shopware/SwagConnect/statuses/{sha}","languages_url":"https://api.github.com/repos/shopware/SwagConnect/languages","stargazers_url":"https://api.github.com/repos/shopware/SwagConnect/stargazers","contributors_url":"https://api.github.com/repos/shopware/SwagConnect/contributors","subscribers_url":"https://api.github.com/repos/shopware/SwagConnect/subscribers","subscription_url":"https://api.github.com/repos/shopware/SwagConnect/subscription","commits_url":"https://api.github.com/repos/shopware/SwagConnect/commits{/sha}","git_commits_url":"https://api.github.com/repos/shopware/SwagConnect/git/commits{/sha}","comments_url":"https://api.github.com/repos/shopware/SwagConnect/comments{/number}","issue_comment_url":"https://api.github.com/repos/shopware/SwagConnect/issues/comments{/number}","contents_url":"https://api.github.com/repos/shopware/SwagConnect/contents/{+path}","compare_url":"https://api.github.com/repos/shopware/SwagConnect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shopware/SwagConnect/merges","archive_url":"https://api.github.com/repos/shopware/SwagConnect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shopware/SwagConnect/downloads","issues_url":"https://api.github.com/repos/shopware/SwagConnect/issues{/number}","pulls_url":"https://api.github.com/repos/shopware/SwagConnect/pulls{/number}","milestones_url":"https://api.github.com/repos/shopware/SwagConnect/milestones{/number}","notifications_url":"https://api.github.com/repos/shopware/SwagConnect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shopware/SwagConnect/labels{/name}","releases_url":"https://api.github.com/repos/shopware/SwagConnect/releases{/id}","deployments_url":"https://api.github.com/repos/shopware/SwagConnect/deployments","created_at":"2014-11-19T15:19:16Z","updated_at":"2016-06-18T01:40:36Z","pushed_at":"2016-07-26T13:31:15Z","git_url":"git://github.com/shopware/SwagConnect.git","ssh_url":"git@github.com:shopware/SwagConnect.git","clone_url":"https://github.com/shopware/SwagConnect.git","svn_url":"https://github.com/shopware/SwagConnect","homepage":"","size":2788,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shopware/SwagConnect/pulls/122"},"html":{"href":"https://github.com/shopware/SwagConnect/pull/122"},"issue":{"href":"https://api.github.com/repos/shopware/SwagConnect/issues/122"},"comments":{"href":"https://api.github.com/repos/shopware/SwagConnect/issues/122/comments"},"review_comments":{"href":"https://api.github.com/repos/shopware/SwagConnect/pulls/122/comments"},"review_comment":{"href":"https://api.github.com/repos/shopware/SwagConnect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shopware/SwagConnect/pulls/122/commits"},"statuses":{"href":"https://api.github.com/repos/shopware/SwagConnect/statuses/0719e86349f2ebdca41aa61adc54896f1d20878b"}}}}
{"actor":{"display_login":"sbofirov"}}