Doctrine 2 - ORM

[GH-564] Fix a wrong return type