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

Commitbaa67dd

Browse files
committed
Added documentation for message option of theTrue constraint
1 parent1714a31 commitbaa67dd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎reference/constraints/Valid.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ object and all sub-objects associated with it.
99
| Applies to|:ref:`property or method<validation-property-target>`|
1010
+----------------+---------------------------------------------------------------------+
1111
| Options| - `traverse`_|
12+
|| - `message`_|
1213
+----------------+---------------------------------------------------------------------+
1314
| Class|:class:`Symfony\\Component\\Validator\\Constraints\\Type`|
1415
+----------------+---------------------------------------------------------------------+
@@ -263,3 +264,10 @@ traverse
263264
If this constraint is applied to a property that holds an array of objects,
264265
then each object in that array will be validated only if this option is set
265266
to ``true``.
267+
268+
message
269+
~~~~~~~
270+
271+
**type**: ``string`` **default**: ``This value should be true.``
272+
273+
This is the message that will be shown if the value is false.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp