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.
2 parents 0d95d3f + 8e7ddc8 commit d24186aCopy full SHA for d24186a
reference/constraints/Valid.rst
@@ -290,6 +290,11 @@ the validation of the ``Address`` fields failed.
290
App\Entity\Author.address.zipCode:
291
This value is too long. It should have 5 characters or less.
292
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
298
Options
299
-------
300
0 commit comments