patches/PersistenceCreator.php
changeset 33 5cb77e9211d8
parent 30 5751ca5a55c0
child 37 f4fce35327ff
equal deleted inserted replaced
32:067edf3db6d7 33:5cb77e9211d8
    51                     case 'int':
    51                     case 'int':
    52                     case 'bigint':
    52                     case 'bigint':
    53                     case 'smallint':
    53                     case 'smallint':
    54                         $type = "int";
    54                         $type = "int";
    55                         break;
    55                         break;
       
    56                     case 'bool':
    56                     case 'tinyint':
    57                     case 'tinyint':
    57                         $type = "bool";
    58                         $type = "bool";
    58                         break;
    59                         break;
    59                     case 'real':
    60                     case 'real':
    60                     case 'float':
    61                     case 'float':
    63                     case 'varchar':
    64                     case 'varchar':
    64                     case 'text':
    65                     case 'text':
    65                     case 'char':
    66                     case 'char':
    66                         $type = "string";
    67                         $type = "string";
    67                         break;
    68                         break;
       
    69                     default: 
       
    70                         $type = "string";
    68                 }
    71                 }
    69 
    72 
    70                 $content .= sprintf(" * @method %s get%s()\n", $type, $methodName);
    73                 $content .= sprintf(" * @method %s get%s()\n", $type, $methodName);
    71                 $content .= sprintf(" * @method set%s(\$%s)\n", $methodName, $type);
    74                 $content .= sprintf(" * @method set%s(\$%s)\n", $methodName, $type);
    72             }
    75             }