Fix pagination on doctrine query
Make tests smarts about doctrine presence
Merge pull request #3 from Wharenn/pager_fix

Fix pagination on doctrine query