Fixed issues when using DoctrineObjectConstructor in combination with xml formatted entities