doctrine / couchdb-odm

A Document Mapper based on CouchDB
http://www.doctrine-project.org
MIT License
150 stars 53 forks source link

Fixed empty "target-document" behavior for XmlDriver #143

Closed tobyS closed 6 years ago

tobyS commented 6 years ago

The XmlDriver by now casts the "target-document" attribute to string regardless of if it is set or not. This results in the EmbeddedDocumentSerializer to try to look up an empty class. See:

https://github.com/doctrine/couchdb-odm/blob/master/lib/Doctrine/ODM/CouchDB/Mapping/EmbeddedDocumentSerializer.php#L53

This PR provides fix.