소스 검색

[Form] Renamed type 'raw' to 'array' in date and time field

Bernhard Schussek 14 년 전
부모
커밋
78b26c2cc5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Symfony/Component/Form/FormFactory.php

+ 2 - 2
src/Symfony/Component/Form/FormFactory.php

@@ -634,7 +634,7 @@ class FormFactory
                     'input_timezone' => $options['data_timezone'],
                 ))
             ));
-        } else if ($options['type'] === 'raw') {
+        } else if ($options['type'] === 'array') {
             $field->setNormalizationTransformer(new ReversedTransformer(
                 new DateTimeToArrayTransformer(array(
                     'input_timezone' => $options['data_timezone'],
@@ -706,7 +706,7 @@ class FormFactory
                     'output_timezone' => $options['data_timezone'],
                 ))
             ));
-        } else if ($options['type'] === 'raw') {
+        } else if ($options['type'] === 'array') {
             $field->setNormalizationTransformer(new ReversedTransformer(
                 new DateTimeToArrayTransformer(array(
                     'input_timezone' => $options['data_timezone'],