M
M
My joy2018-03-19 21:46:50
Yii
My joy, 2018-03-19 21:46:50

Why summary in gridview is not true?

Hi friends!
There is a model, displayed through gridview, and in the header of the summary according to the data, there is such data:
7647c861719401e95e2c9.png
But in fact, there are only 28 rows in the table in the database.
Where do these numbers come from in the summary? And sobsno the most interesting - how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
tigra, 2018-03-19
@t-alexashka

I know that you have a one-to-many relationship, and it is specified in joinWith() instead of with(), so it counts incorrectly

M
Maxim Timofeev, 2018-03-19
@webinar

Probably because of the groupBy in the query.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question