Doctrine 2 - ORM

pager produces wrong results on postgresql