Development

#2808: build_model.patch

You must first sign up to be able to contribute.

Ticket #2808: build_model.patch

File build_model.patch, 2.0 kB (added by manickam, 1 year ago)

Patch for build model command to work

  • lib/command/sfSymfonyCommandApplication.class.php

    old new  
    111111    // include path 
    112112    set_include_path( 
    113113      sfConfig::get('sf_lib_dir').PATH_SEPARATOR. 
    114       sfConfig::get('sf_app_lib_dir').PATH_SEPARATOR
    115       sfConfig::get('sf_model_dir').PATH_SEPARATOR
     114      (($tmp = sfConfig::get('sf_app_lib_dir', false)) ? ($tmp.PATH_SEPARATOR) : '')
     115      (($tmp = sfConfig::get('sf_model_dir', false)) ? ($tmp.PATH_SEPARATOR) : '')
    116116      get_include_path() 
    117117    ); 
     118 
    118119  } 
    119120 
    120121  /** 
  • lib/plugins/sfPropelPlugin/lib/vendor/phing/Phing.php

    old new  
    893893        $path = str_replace('/', DIRECTORY_SEPARATOR, $path); 
    894894 
    895895        foreach (self::$importPaths as $prefix) { 
    896             $foo_path = $prefix . DIRECTORY_SEPARATOR . $path; 
     896            $foo_path = $prefix . (( $prefix !== '') ? DIRECTORY_SEPARATOR : '') . $path; 
    897897            if (file_exists($foo_path)) { 
    898898                return $foo_path; 
    899899            } 
  • lib/util/sfFinder.class.php

    old new  
    347347      $numargs  = count($arg_list); 
    348348    } 
    349349 
     350    if( $arg_list === false || $arg_list[0] === false ) 
     351    { 
     352      return array(); 
     353    } 
     354 
    350355    for ($i = 0; $i < $numargs; $i++) 
    351356    { 
    352357      $real_dir = realpath($arg_list[$i]);