Knp paginator get all rows total

5k Views Asked by At

As I noticed in SQL query logger Knp paginator at first counts all records available and then in second query retrieves records that are needed in requested page. I wonder if there is some way to update first query to retrieve additional counts/sums as I would like to get total count/sum in all records available?

1

There are 1 best solutions below

0
On
{{ pagination.getTotalItemCount }}

use getTotalItemCount method to access the total count