Skip to content

fixed generating of classes #148

Merged
merged 1 commit into from Sep 1, 2011

2 participants

@roed
roed commented Aug 11, 2011

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

Ruud Arentsen fixed the generating of classes based on xml files, changed ClassMeta…
…data to ClassMetadataInfo in these files (as in the ORM tool/mapping)
6345d18
@jwage jwage merged commit 53da7d2 into doctrine:master Sep 1, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.