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 d24186a

Browse filesBrowse files
committed
Merge branch '4.4' into 5.2
* 4.4: [Validator] Improve Valid constraint description
2 parents 0d95d3f + 8e7ddc8 commit d24186a
Copy full SHA for d24186a

File tree

1 file changed

+5
-0
lines changed
Filter options

1 file changed

+5
-0
lines changed

‎reference/constraints/Valid.rst

Copy file name to clipboardExpand all lines: reference/constraints/Valid.rst
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,11 @@ the validation of the ``Address`` fields failed.
290290
App\Entity\Author.address.zipCode:
291291
This value is too long. It should have 5 characters or less.
292292
293+
.. tip::
294+
295+
If you also want to validate that the ``address`` property is an instance of
296+
the ``App\Entity\Address`` class, add the :doc:`Type constraint </reference/constraints/Type>`.
297+
293298
Options
294299
-------
295300

0 commit comments

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