Doctrine 2 - ORM

[GH-916] [DDC-2931] testcase to reproduce Jira 2931