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 41db041 commit 7c7a8e7Copy full SHA for 7c7a8e7
book/forms.rst
@@ -1586,7 +1586,8 @@ this is a great approach.
1586
``constraints`` option, which accepts a single constraint or an array
1587
of them.
1588
1589
-::
+.. code-block:: php
1590
+
1591
use Symfony\Component\Validator\Constraints\MinLength;
1592
use Symfony\Component\Validator\Constraints\NotBlank;
1593
@@ -1608,7 +1609,8 @@ this is a great approach.
1608
1609
``Default`` group when creating the form, or set the correct group on
1610
the constraint you are adding.
1611
1612
1613
1614
new NotBlank(array('groups' => array('create', 'update'))
1615
1616
0 commit comments