-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Count with Group by fails #502
Comments
Hello, |
Yes, distinct is set to true:
|
Have you took a look to https://github.com/KnpLabs/KnpPaginatorBundle/blob/master/Resources/doc/manual_counting.md ? And have you tried |
Yes, as well. Manual counting gives me only a count for the whole query, but I need it for every row. If 3 rows are grouped, the variable "menge" has the value 3. |
do you mind to translate the german var names into english please ? it'll ease the understanding ;) |
Here is the difference:
With
"menge" means "amount" or "count" ;) |
Still exists in 2024. wtf? |
@timrasche no need to be rude, feel free to contribute. |
I have the following query:
Executed by the following code:
it results in having the variable "menge" always has the value 1.
if I execute
$eintraege = $query->getResult();
then the value of "menge" is correct.Is there anything wrong in my example, or is it a bug?
Thank you!
The text was updated successfully, but these errors were encountered: