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 9383218

Browse filesBrowse files
committed
minor #14974 [Validator] Improve Valid constraint description (wkania)
This PR was merged into the 4.4 branch. Discussion ---------- [Validator] Improve Valid constraint description <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 6f1a420 [Validator] Improve Valid constraint description
2 parents 13f97d7 + 6f1a420 commit 9383218
Copy full SHA for 9383218

File tree

1 file changed

+7
-0
lines changed
Filter options

1 file changed

+7
-0
lines changed

‎reference/constraints/Valid.rst

Copy file name to clipboardExpand all lines: reference/constraints/Valid.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,13 @@ the validation of the ``Address`` fields failed.
243243
App\Entity\Author.address.zipCode:
244244
This value is too long. It should have 5 characters or less.
245245
246+
.. include:: /reference/constraints/_empty-values-are-valid.rst.inc
247+
248+
.. note::
249+
250+
This constraint is not aware what sub-object must be associated with it, a common solution is to combine this constraint
251+
with :doc:`Type </reference/constraints/Type>`.
252+
246253
Options
247254
-------
248255

0 commit comments

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