diff --git a/lib/Doctrine/ORM/Tools/Export/Driver/AbstractExporter.php b/lib/Doctrine/ORM/Tools/Export/Driver/AbstractExporter.php index 6f84e8237..b8321ec44 100644 --- a/lib/Doctrine/ORM/Tools/Export/Driver/AbstractExporter.php +++ b/lib/Doctrine/ORM/Tools/Export/Driver/AbstractExporter.php @@ -84,7 +84,7 @@ abstract class AbstractExporter } foreach ($this->_metadatas as $metadata) { - $outputPath = $this->_outputDir . '/' . $metadata->name . $this->_extension; + $outputPath = $this->_outputDir . '/' . str_replace('\\', '.', $metadata->name) . $this->_extension; $output = $this->exportClassMetadata($metadata); file_put_contents($outputPath, $output); }