Skip to content

Commit a4db275

Browse files
XitasoChriswouterj
XitasoChris
authored andcommitted
Add deprecation notice to "choice_list" option of ChoiceType
1 parent 90745db commit a4db275

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reference/forms/types/choice.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ is the item value and the array value is the item's label::
102102
choice_list
103103
~~~~~~~~~~~
104104

105+
.. caution::
106+
107+
The ``choice_list`` option of ChoiceType was deprecated in Symfony 2.7.
108+
You should use ``choices`` or ``choice_loader`` now.
109+
105110
**type**: :class:`Symfony\\Component\\Form\\Extension\\Core\\ChoiceList\\ChoiceListInterface`
106111

107112
This is one way of specifying the options to be used for this field.

0 commit comments

Comments
 (0)