Support for Doctrine version >= 2.3.3-dev

to fix https://github.com/KnpLabs/KnpPaginatorBundle/issues/125