Default String für den Creator
authorMarkus Bröker<broeker.markus@googlemail.com>
Sat, 19 Dec 2015 12:45:49 +0100
changeset 33 5cb77e9211d8
parent 32 067edf3db6d7
child 34 72f40bc83dbf
Default String für den Creator
patches/PersistenceCreator.php
--- a/patches/PersistenceCreator.php
+++ b/patches/PersistenceCreator.php
@@ -53,6 +53,7 @@
                     case 'smallint':
                         $type = "int";
                         break;
+                    case 'bool':
                     case 'tinyint':
                         $type = "bool";
                         break;
@@ -65,6 +66,8 @@
                     case 'char':
                         $type = "string";
                         break;
+                    default: 
+                        $type = "string";
                 }
 
                 $content .= sprintf(" * @method %s get%s()\n", $type, $methodName);