Doctrine 2 - ORM

[GH-536] add missed branch