Support for Doctrine version < 2.4.*-dev

Fixes commit https://github.com/KnpLabs/knp-components/commit/19923c5b707bd13b470131040c56d873e2998cf6

So component could be used with older Doctrine versions.