phalcon/cphalcon — pull request #3040 by ovr (2014-11-15 06:10:34+00:00)
Title: Phalcon 2 Paginator\Adapter\QueryBuilder fix

Fixes

- int type for total items
- fix total pages (limit 100, with 4 in db show 0.04)

Workflow example

http://phalcon-module.dmtry.me/api/users
http://phalcon-module.dmtry.me/api/users?limit=1
http://phalcon-module.dmtry.me/api/users?limit=2
http://phalcon-module.dmtry.me/api/users?limit=3
http://phalcon-module.dmtry.me/api/users?limit=100

Without path it works like https://gist.github.com/ovr/43af99f5eca8dd74dca1

Thx