Doctrine 2 - ORM

[GH-393] Updated the classmetadata factory for Common 2.3