Skip to content


DDC-548: Code example for reverse engineering no longer functions #5054

doctrinebot opened this Issue · 1 comment

2 participants


Jira issue originally created by user mjh_ca:

addMappingSource() function no longer exists in \Doctrine\ORM\Tools\Export\ClassMetaDataExporter

This causes the example code at to break;

Example code should probably be:

    new \Doctrine\ORM\Mapping\Driver\DatabaseDriver(

$cmf = new \Doctrine\ORM\Tools\DisconnectedClassMetadataFactory($em);
$metadata = $cmf->getAllMetadata();

$cme = new \Doctrine\ORM\Tools\Export\ClassMetadataExporter();
$exporter = $cme->getExporter('yml', '/path/to/export/yml');


Issue was closed with resolution "Fixed"

@jwage jwage was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0-BETA2 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
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.