소스 검색

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,