Development

#3476: propel-build-forms-behaviors.patch

You must first sign up to be able to contribute.

Ticket #3476: propel-build-forms-behaviors.patch

File propel-build-forms-behaviors.patch, 0.9 kB (added by Kris.Wallsmith, 2 months ago)
  • lib/plugins/sfPropelPlugin/lib/propel/generator/sfPropelFormGenerator.class.php

    old new  
    8080    // create a form class for every Propel class 
    8181    foreach ($this->dbMap->getTables() as $tableName => $table) 
    8282    { 
     83      try  
     84      { 
     85        // trigger the include_once of any behaviors now, and catch the  
     86        // exception that is thrown due to no plugin behaviors having been 
     87        // registered 
     88        class_exists($table->getPhpName()); 
     89      } 
     90      catch (sfConfigurationException $e)  
     91      { 
     92      } 
     93 
    8394      $this->table = $table; 
    8495 
    8596      // find the package to store forms in the same directory as the model classes