Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 02c285a

Browse filesBrowse files
committed
minor #7990 Explain how to properly override choices (xabbuh)
This PR was merged into the 3.3 branch. Discussion ---------- Explain how to properly override choices Update the documentation for symfony/symfony#21919. This fixes #7779. Commits ------- a9f934e explain how to properly override choices
2 parents a8b227e + a9f934e commit 02c285a
Copy full SHA for 02c285a

File tree

5 files changed

+30
-0
lines changed
Filter options

5 files changed

+30
-0
lines changed

‎reference/forms/types/country.rst

Copy file name to clipboardExpand all lines: reference/forms/types/country.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ choices
6060
The country type defaults the ``choices`` option to the whole list of countries.
6161
The locale is used to translate the countries names.
6262

63+
.. caution::
64+
65+
If you want to override the built-in choices of the country type, you
66+
will also have to set the ``choice_loader`` option to ``null``. Not doing
67+
so is deprecated since Symfony 3.3.
68+
6369
Inherited Options
6470
-----------------
6571

‎reference/forms/types/currency.rst

Copy file name to clipboardExpand all lines: reference/forms/types/currency.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ choices
5151

5252
The choices option defaults to all currencies.
5353

54+
.. caution::
55+
56+
If you want to override the built-in choices of the currency type, you
57+
will also have to set the ``choice_loader`` option to ``null``. Not doing
58+
so is deprecated since Symfony 3.3.
59+
5460
Inherited Options
5561
-----------------
5662

‎reference/forms/types/language.rst

Copy file name to clipboardExpand all lines: reference/forms/types/language.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ choices
6161
The choices option defaults to all languages.
6262
The default locale is used to translate the languages names.
6363

64+
.. caution::
65+
66+
If you want to override the built-in choices of the language type, you
67+
will also have to set the ``choice_loader`` option to ``null``. Not doing
68+
so is deprecated since Symfony 3.3.
69+
6470
Inherited Options
6571
-----------------
6672

‎reference/forms/types/locale.rst

Copy file name to clipboardExpand all lines: reference/forms/types/locale.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ choices
6363
The choices option defaults to all locales. It uses the default locale to
6464
specify the language.
6565

66+
.. caution::
67+
68+
If you want to override the built-in choices of the locale type, you
69+
will also have to set the ``choice_loader`` option to ``null``. Not doing
70+
so is deprecated since Symfony 3.3.
71+
6672
Inherited Options
6773
-----------------
6874

‎reference/forms/types/timezone.rst

Copy file name to clipboardExpand all lines: reference/forms/types/timezone.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ choices
5656
The Timezone type defaults the choices to all timezones returned by
5757
:phpmethod:`DateTimeZone::listIdentifiers`, broken down by continent.
5858

59+
.. caution::
60+
61+
If you want to override the built-in choices of the timezone type, you
62+
will also have to set the ``choice_loader`` option to ``null``. Not doing
63+
so is deprecated since Symfony 3.3.
64+
5965
Inherited Options
6066
-----------------
6167

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.