Skip to content

Commit

Permalink
[DoctrineBundle]fixed defect in doctrine:generate:entity where xml ex…
Browse files Browse the repository at this point in the history
…tension was added to all mapping types
  • Loading branch information
IamPersistent authored and fabpot committed Jul 16, 2010
1 parent b1b633c commit 7287913
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ protected function execute(InputInterface $input, OutputInterface $output)

$exporter->setEntityGenerator($this->getEntityGenerator());
} else {
$path = $dirs[$namespace].'/'.$bundle.'/Resources/config/doctrine/metadata/'.str_replace('\\', '.', $fullEntityClassName).'.dcm.xml';
$mappingType = $mappingType=='yaml' ? 'yml' : $mappingType;
$path = $dirs[$namespace].'/'.$bundle.'/Resources/config/doctrine/metadata/'.str_replace('\\', '.', $fullEntityClassName).'.dcm.'.$mappingType;
}

$code = $exporter->exportClassMetadata($class);
Expand Down

0 comments on commit 7287913

Please sign in to comment.