AliHichem/AliDatatableBundle — Issue #3: Not a correct implementation of _getTotalRecords in Datatable util
Author: chyshyya
Created: 2012-03-05 13:38:44+00:00
State: open

You just return the total count of records, but in real world you must show in a table count of available records.
Your way put me into situation when one user have 30 records created and other have only two, I set up the table to show 10 records per page and... Evry one of them see, that total count is 32 and one that have only 2 records see 4 page switchers with three empty pages. Other user see 3 full pages and one empty.

So and of couse you need to check where statements with all relations.

You must use almost everything from
_getData without setMaxResult
And this time you will get write number of rows. And pager will work good

Thank you for your bundle.