Development

#1417: sfCrudGenerator.2.patch

You must first sign up to be able to contribute.

Ticket #1417: sfCrudGenerator.2.patch

File sfCrudGenerator.2.patch, 1.0 kB (added by gnat, 2 years ago)

Fixes crud generation for sfDoctrinePlugin.

  • sfCrudGenerator.class.php

    old new  
    8888    $this->setTheme($theme); 
    8989 
    9090    $templateFiles = array_merge( 
    91       sfFinder::type('file')->name('*.php')->relative()->in(sfLoader::getGeneratorTemplate($this->getGeneratorClass(), 'default', '').'/templates'), 
     91      sfFinder::type('file')->name('*.php')->relative()->in(sfLoader::getGeneratorTemplate($this->getGeneratorClass(), $this->getTheme(), '').'/templates'), 
    9292      sfFinder::type('file')->name('*.php')->relative()->in($themeDir.'/templates') 
    9393    ); 
    9494 
    9595    $configFiles = array_merge( 
    96       sfFinder::type('file')->name('*.yml')->relative()->in(sfLoader::getGeneratorTemplate($this->getGeneratorClass(), 'default', '').'/config'), 
     96      sfFinder::type('file')->name('*.yml')->relative()->in(sfLoader::getGeneratorTemplate($this->getGeneratorClass(), $this->getTheme(), '').'/config'), 
    9797      sfFinder::type('file')->name('*.yml')->relative()->in($themeDir.'/config') 
    9898    ); 
    9999