Fixing convert-mapping task to use the DisconnectedClassMetdataFactory
This commit is contained in:
parent
44e656dc0a
commit
bce7ebfcc3
1 changed files with 5 additions and 2 deletions
|
@ -25,7 +25,9 @@ use Symfony\Components\Console\Input\InputArgument,
|
|||
Symfony\Components\Console\Input\InputOption,
|
||||
Symfony\Components\Console,
|
||||
Doctrine\ORM\Tools\Console\MetadataFilter,
|
||||
Doctrine\ORM\Tools\Export\ClassMetadataExporter;
|
||||
Doctrine\ORM\Tools\Export\ClassMetadataExporter,
|
||||
Doctrine\ORM\Tools\EntityGenerator,
|
||||
Doctrine\ORM\Tools\DisconnectedClassMetadataFactory;
|
||||
|
||||
/**
|
||||
* Command to convert your mapping information between the various formats.
|
||||
|
@ -94,7 +96,8 @@ EOT
|
|||
);
|
||||
}
|
||||
|
||||
$metadatas = $em->getMetadataFactory()->getAllMetadata();
|
||||
$cmf = new DisconnectedClassMetadataFactory($em);
|
||||
$metadatas = $cmf->getAllMetadata();
|
||||
$metadatas = MetadataFilter::filter($metadatas, $input->getOption('filter'));
|
||||
|
||||
// Process destination directory
|
||||
|
|
Loading…
Add table
Reference in a new issue