Doctrine 2 - ORM

[GH-522] [DDC-2166] Refactor identity hash generation