Doctrine 2 - ORM

[GH-668] [WIP] Adding failing test for DDC-2452