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

Github-PR-148 by roed: fixed generating of classes

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of

      {username}

      :

      Url: https://github.com/doctrine/mongodb-odm/pull/148

      Message:

      fixed the generating of classes based on xml files, changed ClassMetadata to ClassMetadataInfo in these files (as in the ORM tool/mapping)

      the following did not work, but works after these changes:
      $cmf = new \Doctrine\ODM\MongoDB\Tools\DisconnectedClassMetadataFactory();
      $cmf->setDocumentManager($this->_dm);
      $cmf->setConfiguration($this->_dm->getConfiguration());
      $driver = $this->_dm->getConfiguration()->getMetadataDriverImpl();

      $metadatas = $cmf->getAllMetadata(); //this would break it

      // $this->_dm is an instance of Doctrine\ODM\MongoDB\DocumentManager

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: