{"action":"created","issue":{"url":"https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/issues/502","repository_url":"https://api.github.com/repos/KnpLabs/KnpPaginatorBundle","labels_url":"https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/issues/502/comments","events_url":"https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/issues/502/events","html_url":"https://github.com/KnpLabs/KnpPaginatorBundle/issues/502","id":357662553,"node_id":"MDU6SXNzdWUzNTc2NjI1NTM=","number":502,"title":"Count with Group by fails ","user":{"login":"nnwebdesign","id":34055544,"node_id":"MDQ6VXNlcjM0MDU1NTQ0","avatar_url":"https://avatars0.githubusercontent.com/u/34055544?v=4","gravatar_id":"","url":"https://api.github.com/users/nnwebdesign","html_url":"https://github.com/nnwebdesign","followers_url":"https://api.github.com/users/nnwebdesign/followers","following_url":"https://api.github.com/users/nnwebdesign/following{/other_user}","gists_url":"https://api.github.com/users/nnwebdesign/gists{/gist_id}","starred_url":"https://api.github.com/users/nnwebdesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnwebdesign/subscriptions","organizations_url":"https://api.github.com/users/nnwebdesign/orgs","repos_url":"https://api.github.com/users/nnwebdesign/repos","events_url":"https://api.github.com/users/nnwebdesign/events{/privacy}","received_events_url":"https://api.github.com/users/nnwebdesign/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-06T13:45:52Z","updated_at":"2018-09-06T14:52:36Z","closed_at":null,"author_association":"NONE","body":"I have the following query:\r\n\r\n```\r\n$qb = $em->createQueryBuilder();\r\n$qb->select('de', 'COUNT(de.auftragsnummer) as menge');\r\n$qb->from('App\\Entity\\DispositionsplanEintrag', 'de');\r\n$qb->where('de.geloescht IS NULL');\r\n$qb->groupBy('de.auftragsnummer');\r\n$qb->orderBy('de.auftragsnummer', 'ASC');\r\n```\r\n\r\nExecuted by the following code:\r\n\r\n```\r\n$query = $qb->getQuery();\r\n$paginator = $this->get('knp_paginator');\r\n$eintraege = $paginator->paginate($query, $request->query->getInt('page', 1), 20);\r\n```\r\n\r\nit results in having the variable \"menge\" always has the value 1.\r\nif I execute `$eintraege = $query->getResult();` then the value of \"menge\" is correct.\r\nIs there anything wrong in my example, or is it a bug?\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/issues/comments/419123868","html_url":"https://github.com/KnpLabs/KnpPaginatorBundle/issues/502#issuecomment-419123868","issue_url":"https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/issues/502","id":419123868,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTEyMzg2OA==","user":{"login":"nicolasmure","id":4362252,"node_id":"MDQ6VXNlcjQzNjIyNTI=","avatar_url":"https://avatars3.githubusercontent.com/u/4362252?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolasmure","html_url":"https://github.com/nicolasmure","followers_url":"https://api.github.com/users/nicolasmure/followers","following_url":"https://api.github.com/users/nicolasmure/following{/other_user}","gists_url":"https://api.github.com/users/nicolasmure/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasmure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasmure/subscriptions","organizations_url":"https://api.github.com/users/nicolasmure/orgs","repos_url":"https://api.github.com/users/nicolasmure/repos","events_url":"https://api.github.com/users/nicolasmure/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasmure/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T14:52:36Z","updated_at":"2018-09-06T14:52:36Z","author_association":"MEMBER","body":"do you mind to translate the german var names into english please ? it'll ease the understanding ;)"}}
{"actor":{"display_login":"nicolasmure"}}