Fixed issues when using DoctrineObjectConstructor in combination with xm...


When deserializing enities from XML format the DoctrineObjectConstructor recieved an SimpleXMLElement assuming it was a proxy object it send it back to Doctrine throwing an EntityNotFound exception.

I fixed it, and added the missing code needed to update existing entities in case the source format was XML.