|
@@ -75,6 +75,9 @@ EOT
|
|
} else {
|
|
} else {
|
|
$destPath .= '/Resources/config/doctrine/metadata';
|
|
$destPath .= '/Resources/config/doctrine/metadata';
|
|
}
|
|
}
|
|
|
|
+ if ($type === 'yaml') {
|
|
|
|
+ $type = 'yml';
|
|
|
|
+ }
|
|
|
|
|
|
$cme = new ClassMetadataExporter();
|
|
$cme = new ClassMetadataExporter();
|
|
$exporter = $cme->getExporter($type);
|
|
$exporter = $cme->getExporter($type);
|
|
@@ -100,7 +103,7 @@ EOT
|
|
if ($type === 'annotation') {
|
|
if ($type === 'annotation') {
|
|
$path = $destPath.'/'.$className.'.php';
|
|
$path = $destPath.'/'.$className.'.php';
|
|
} else {
|
|
} else {
|
|
- $path = $destPath.'/'.str_replace('\\', '.', $class->name).'.dcm.xml';
|
|
|
|
|
|
+ $path = $destPath.'/'.str_replace('\\', '.', $class->name).'.dcm.'.$type;
|
|
}
|
|
}
|
|
$output->writeln(sprintf(' > writing <comment>%s</comment>', $path));
|
|
$output->writeln(sprintf(' > writing <comment>%s</comment>', $path));
|
|
$code = $exporter->exportClassMetadata($class);
|
|
$code = $exporter->exportClassMetadata($class);
|