Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-28

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0ALPHA1
    • Fix Version/s: 1.0.0ALPHA2
    • Component/s: Mapping Drivers
    • Labels:
      None

      Description

       
      //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

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            julien rollin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: