ice / framework

Source code of Ice framework
https://www.iceframework.org
BSD 3-Clause "New" or "Revised" License
341 stars 45 forks source link

Pagination calculate if data is array or total is specified #273

Closed mruz closed 4 years ago

mruz commented 4 years ago

When we pass an array to the data:

Pagination::calculate(): instanceof expects an object instance

We could also check total first. Then we could do a count query first and second query with offset.