Phalcon 2 Paginator\Adapter\QueryBuilder fix

Hi

Fixes:

- int type for total items
- fix total pages (limit 100, with 4 in db show 0.04)
- PHP 5.3 BC

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 patch it works like https://gist.github.com/ovr/43af99f5eca8dd74dca1

Thx

![](http://s.pikabu.ru/post_img/2013/05/17/9/1368796778_1338513910.gif)