浏览代码

[Form] Fixing the object versus normalized data PHPDoc on Field, which I believe was backwards.

Ryan Weaver 14 年之前
父节点
当前提交
cf1512dce8
共有 1 个文件被更改,包括 9 次插入4 次删除
  1. 9 4
      src/Symfony/Component/Form/Field.php

+ 9 - 4
src/Symfony/Component/Form/Field.php

@@ -303,17 +303,22 @@ class Field extends Configurable implements FieldInterface
     }
 
     /**
-     * Returns the normalized data of the field.
+     * Returns the data in the format needed for the underlying object.
      *
-     * @return mixed  When the field is not bound, the default data is returned.
-     *                When the field is bound, the normalized bound data is
-     *                returned if the field is valid, null otherwise.
+     * @return mixed
      */
     public function getData()
     {
         return $this->data;
     }
 
+    /**
+     * Returns the normalized data of the field.
+     *
+     * @return mixed  When the field is not bound, the default data is returned.
+     *                When the field is bound, the normalized bound data is
+     *                returned if the field is valid, null otherwise.
+     */
     protected function getNormalizedData()
     {
         return $this->normalizedData;