Support for Doctrine version >= 2.3.0

Fix https://github.com/KnpLabs/knp-components/issues/44