Development

Changeset 8769

You must first sign up to be able to contribute.

Changeset 8769

Show
Ignore:
Timestamp:
05/04/08 18:58:45 (1 year ago)
Author:
fabien
Message:

removed Propel fix in MapBuilder? as the bug has been fixed upstream

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/plugins/sfPropelPlugin/lib/propel/builder/SfMapBuilderBuilder.php

    r6970 r8769  
    3838    parent::addIncludes($script); 
    3939  } 
    40  
    41   protected function addDoBuild(&$script) 
    42   { 
    43     parent::addDoBuild($script); 
    44  
    45     // fix http://propel.phpdb.org/trac/ticket/235: Column sizes not being inserted into [table]MapBuilder->DoBuild() by PHP5MapBuilderBuilder 
    46     $sizes = array(); 
    47     foreach ($this->getTable()->getColumns() as $col) 
    48     { 
    49       $sizes[$col->getPhpName()] = !$col->getSize() ? 'null' : $col->getSize(); 
    50     } 
    51     $script = preg_replace("/\\\$tMap\->addColumn\('([^']+)', '([^']+)', '([^']+)', CreoleTypes\:\:VARCHAR, (false|true)\)/e", '"\\\$tMap->addColumn(\'$1\', \'$2\', \'$3\', CreoleTypes::VARCHAR, $4, {$sizes[\'$2\']})"', $script); 
    52   } 
    5340} 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.