Issue Details (XML | Word | Printable)

Key: MODM-28
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jonathan H. Wage
Reporter: julien rollin
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Doctrine MongoDB ODM

xml mapping : embedded-document node is ignored, can't persist

Created: 26/Jul/10 01:04 PM   Updated: 27/Jul/10 10:55 AM
Component/s: Mapping Drivers
Affects Version/s: 1.0.0ALPHA1
Fix Version/s: 1.0.0ALPHA2


 Description  « Hide
//file Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php line 171

protected function _loadMappingFile($file)
    {
        $result = array();
        $xmlElement = simplexml_load_file($file);

        if (isset($xmlElement->document)) {
            foreach ($xmlElement->document as $documentElement) {
                $documentName = (string) $documentElement['name'];
                $result[$documentName] = $documentElement;
            }
        }
        
        return $result;
    }

embedded-document and mapped-superclass are ignored so embed documents are not persisted



 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.