Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit05a825a

Browse files
committed
document "choices" wildcard in Choice validation constraint
1 parent50aa694 commit05a825a

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

‎reference/constraints/Choice.rst‎

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,17 @@ too few choices per the `min`_ option.
375375

376376
You can use the following parameters in this message:
377377

378-
+------------------+------------------------------------------------+
379-
| Parameter| Description|
380-
+==================+================================================+
381-
| ``{{ limit }}``| The lower limit of choices|
382-
+------------------+------------------------------------------------+
378+
+--------------------+-------------------------------------------------------+
379+
| Parameter| Description|
380+
+====================+=======================================================+
381+
| ``{{ value }}``| The current (invalid) value|
382+
+--------------------+-------------------------------------------------------+
383+
| ``{{ choices }}``| String list of available choices, separated by comas|
384+
+--------------------+-------------------------------------------------------+
385+
386+
..versionadded::4.3
387+
388+
The ``{{ choices }}`` parameter was introduced in Symfony 4.3.
383389

384390
maxMessage
385391
~~~~~~~~~~
@@ -391,11 +397,17 @@ too many options per the `max`_ option.
391397

392398
You can use the following parameters in this message:
393399

394-
+------------------+------------------------------------------------+
395-
| Parameter| Description|
396-
+==================+================================================+
397-
| ``{{ limit }}``| The upper limit of choices|
398-
+------------------+------------------------------------------------+
400+
+--------------------+-------------------------------------------------------+
401+
| Parameter| Description|
402+
+====================+=======================================================+
403+
| ``{{ value }}``| The current (invalid) value|
404+
+--------------------+-------------------------------------------------------+
405+
| ``{{ choices }}``| String list of available choices, separated by comas|
406+
+--------------------+-------------------------------------------------------+
407+
408+
..versionadded::4.3
409+
410+
The ``{{ choices }}`` parameter was introduced in Symfony 4.3.
399411

400412
strict
401413
~~~~~~

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp