Doctrine 2 - ORM

Fix of DDC-167 creates FatalError when persisting a new entity