We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9383218 commit 8e7ddc8Copy full SHA for 8e7ddc8
reference/constraints/Valid.rst
@@ -243,12 +243,10 @@ the validation of the ``Address`` fields failed.
243
App\Entity\Author.address.zipCode:
244
This value is too long. It should have 5 characters or less.
245
246
-.. include:: /reference/constraints/_empty-values-are-valid.rst.inc
+.. tip::
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>`.
+ If you also want to validate that the ``address`` property is an instance of
+ the ``App\Entity\Address`` class, add the :doc:`Type constraint </reference/constraints/Type>`.
252
253
Options
254
-------
0 commit comments