瀏覽代碼

Fixed a typo

Christophe Coevoet 14 年之前
父節點
當前提交
8800a9a932
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php

+ 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,