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 8e7ddc8

Browse filesBrowse files
committed
Reword
1 parent 9383218 commit 8e7ddc8
Copy full SHA for 8e7ddc8

File tree

1 file changed

+3
-5
lines changed
Filter options

1 file changed

+3
-5
lines changed

‎reference/constraints/Valid.rst

Copy file name to clipboardExpand all lines: reference/constraints/Valid.rst
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,10 @@ 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
246+
.. tip::
247247

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>`.
248+
If you also want to validate that the ``address`` property is an instance of
249+
the ``App\Entity\Address`` class, add the :doc:`Type constraint </reference/constraints/Type>`.
252250

253251
Options
254252
-------

0 commit comments

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