Doctrine 2 - ORM

[GH-427] Fix ORMInvalidArgumentException factory methods with return instead of throw