Skip to content

Commit

Permalink
Fix Ticket #12 - missing parameter in generate yaml from models.
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Aug 31, 2010
1 parent 8082bbe commit e3c41dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/ZFDoctrine/Tool/DoctrineProvider.php
Expand Up @@ -279,10 +279,11 @@ protected function _createImportSchema()

public function generateYamlFromModels()
{
$doctrine = $this->_getDoctrineRegistry();
$this->_loadDoctrineModels();

$yamlDir = $this->_getYamlDirectoryPath();
Doctrine_Core::generateYamlFromModels($yamlDir);
Doctrine_Core::generateYamlFromModels($yamlDir, $doctrine->getModelPath());

$this->_print('Successfully generated yaml schema files from model.', array('color' => 'green'));
$this->_print('Destination Directory: ' . $yamlDir);
Expand Down

0 comments on commit e3c41dc

Please sign in to comment.