Ver Fonte

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

Bernhard Schussek há 14 anos atrás
pai
commit
78b26c2cc5
1 ficheiros alterados com 2 adições e 2 exclusões
  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'],