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 da9061d + d24186a commit 8490613Copy full SHA for 8490613
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