Development

Changeset 13927

You must first sign up to be able to contribute.

Changeset 13927

Show
Ignore:
Timestamp:
12/10/08 22:47:32 (1 year ago)
Author:
FabianLange
Message:

[1.2] fixed a regression with the handling of CLOB datatype in propel 1.3 in conjunction with forms. fixes #5263

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/plugins/sfPropelPlugin/lib/generator/sfPropelCrudGenerator.class.php

    r13234 r13927  
    209209      return $this->getPHPObjectHelper('input_tag', $column, $params, array('size' => 7)); 
    210210    } 
    211     else if ($type == PropelColumnTypes::LONGVARCHAR
     211    else if ($type == PropelColumnTypes::LONGVARCHAR || $type == PropelColumnTypes::CLOB
    212212    { 
    213213      return $this->getPHPObjectHelper('textarea_tag', $column, $params, array('size' => '30x3')); 
     
    280280      return "select_tag($name, $options, $params)"; 
    281281    } 
    282     else if ($type == PropelColumnTypes::CHAR || $type == PropelColumnTypes::VARCHAR || $type == PropelColumnTypes::LONGVARCHAR
     282    else if ($type == PropelColumnTypes::CHAR || $type == PropelColumnTypes::VARCHAR || $type == PropelColumnTypes::LONGVARCHAR || $type == PropelColumnTypes::CLOB
    283283    { 
    284284      $size = ($column->getSize() < 15 ? $column->getSize() : 15); 
  • branches/1.2/lib/plugins/sfPropelPlugin/lib/generator/sfPropelFormGenerator.class.php

    r13234 r13927  
    220220        $name = 'InputCheckbox'; 
    221221        break; 
     222      case PropelColumnTypes::CLOB: 
    222223      case PropelColumnTypes::LONGVARCHAR: 
    223224        $name = 'Textarea'; 
     
    281282        $name = 'Boolean'; 
    282283        break; 
     284      case PropelColumnTypes::CLOB: 
    283285      case PropelColumnTypes::CHAR: 
    284286      case PropelColumnTypes::VARCHAR: 
     
    352354      switch ($column->getType()) 
    353355      { 
     356        case PropelColumnTypes::CLOB: 
    354357        case PropelColumnTypes::CHAR: 
    355358        case PropelColumnTypes::VARCHAR: 

The Sensio Labs Network

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