protected function getExporter($toType, $destPath)
 {
     $exporter = parent::getExporter($toType, $destPath);
     if ($exporter instanceof XmlExporter) {
         $exporter->setExtension('.orm.xml');
     } elseif ($exporter instanceof YamlExporter) {
         $exporter->setExtension('.orm.yml');
     }
     return $exporter;
 }
 /**
  * @param string $toType
  * @param string $destPath
  *
  * @return \Doctrine\ORM\Tools\Export\Driver\AbstractExporter
  */
 protected function getExporter($toType, $destPath)
 {
     /** @var $exporter \Doctrine\ORM\Tools\Export\Driver\AbstractExporter */
     $exporter = parent::getExporter($toType, $destPath);
     if ($exporter instanceof XmlExporter) {
         $exporter->setExtension('.orm.xml');
     } elseif ($exporter instanceof YamlExporter) {
         $exporter->setExtension('.orm.yml');
     }
     return $exporter;
 }