Support for Doctrine version >= 2.3.0

Fix https://github.com/KnpLabs/knp-components/issues/44
Merge pull request #47 from ChubV/patch-2

[bugfix] Support for Doctrine version >= 2.3.0