Development

Changeset 10190

You must first sign up to be able to contribute.

Changeset 10190

Show
Ignore:
Timestamp:
07/09/08 19:59:33 (5 months ago)
Author:
Leon.van.der.Ree
Message:

bug-fixes for returned dataTypes for columns

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfExtjsThemePlugin/lib/sfExtjsPropelAdminGenerator.php

    r10184 r10190  
    14171417  } 
    14181418 
     1419  /** 
     1420   * returns Ext-dataType 
     1421   * See http://extjs.com/deploy/dev/docs/output/Ext.data.Record.html#create 
     1422   * 
     1423   * @param ColumnMap $column 
     1424   * @return string containing the dataType 
     1425   */ 
    14191426  function getFieldType($column) 
    14201427  { 
     
    14321439 
    14331440      case CreoleTypes::BOOLEAN: 
    1434         $fieldType = 'bool'; 
     1441        $fieldType = 'boolean'; // this should probably be boolean, not bool 
    14351442        break; 
    14361443 
    1437       case CreoleTypes::TEXT: 
    1438       case CreoleTypes::LONGVARCHAR: 
    1439         $fieldType = 'text'; 
    1440         break; 
     1444//      case CreoleTypes::TEXT: 
     1445//      case CreoleTypes::LONGVARCHAR: 
     1446//        $fieldType = 'string'; //who set this to text? text brakes grids, disabled all, since string is default anyway 
     1447//        break; 
    14411448 
    14421449      case CreoleTypes::FLOAT: