Commit bce7ebfc authored by Jonathan H. Wage's avatar Jonathan H. Wage

Fixing convert-mapping task to use the DisconnectedClassMetdataFactory

parent 44e656dc
...@@ -25,7 +25,9 @@ use Symfony\Components\Console\Input\InputArgument, ...@@ -25,7 +25,9 @@ use Symfony\Components\Console\Input\InputArgument,
Symfony\Components\Console\Input\InputOption, Symfony\Components\Console\Input\InputOption,
Symfony\Components\Console, Symfony\Components\Console,
Doctrine\ORM\Tools\Console\MetadataFilter, 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. * Command to convert your mapping information between the various formats.
...@@ -94,7 +96,8 @@ EOT ...@@ -94,7 +96,8 @@ EOT
); );
} }
$metadatas = $em->getMetadataFactory()->getAllMetadata(); $cmf = new DisconnectedClassMetadataFactory($em);
$metadatas = $cmf->getAllMetadata();
$metadatas = MetadataFilter::filter($metadatas, $input->getOption('filter')); $metadatas = MetadataFilter::filter($metadatas, $input->getOption('filter'));
// Process destination directory // Process destination directory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment