Christophe Coevoet 14 lat temu
rodzic
commit
8800a9a932

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php

@@ -93,7 +93,7 @@ EOT
               $name = $e[0];
               $type = isset($e[1]) ? $e[1] : 'string';
               preg_match_all('/(.*)\((.*)\)/', $type, $matches);
-              $type = isset($matches[1][0]) ? $matches[1][0] : 'string';
+              $type = isset($matches[1][0]) ? $matches[1][0] : $type;
               $length = isset($matches[2][0]) ? $matches[2][0] : null;
               $class->mapField(array(
                   'fieldName' => $name,