瀏覽代碼

Update documentation for deprecated choice_list.

Jules Lamur 8 年之前
父節點
當前提交
e7ef565145
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Resources/doc/reference/form_types.rst

+ 4 - 0
Resources/doc/reference/form_types.rst

@@ -75,8 +75,12 @@ preferred_choices
   defaults to array() - see the `Symfony choice Field Type docs`_ for more info
 
 choice_list
+  **(deprecated in favor of choice_loader since Symfony 2.7)**
   defaults to a ``ModelChoiceList`` built from the other options
 
+choice_loader
+  defaults to a ``ModelChoiceLoader`` built from the other options
+
 model_manager
   defaults to null, but is actually calculated from the linked Admin class.
   You usually should not need to set this manually.