Skriptas
Skriptas

Reputation: 889

Knp paginator get all rows total

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?

Upvotes: 4

Views: 5327

Answers (1)

Arun Vitto
Arun Vitto

Reputation: 163

{{ pagination.getTotalItemCount }}

use getTotalItemCount method to access the total count

Upvotes: 1

Related Questions