Skip to content

Commit bc223ac

Browse files
committed
[#2058] Tweaking constraints versus validation_constraint note per @stof
1 parent 8aeb9cf commit bc223ac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

book/forms.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,9 +1582,10 @@ certainly more robust - to bind your form to an object. But for simple forms,
15821582
this is a great approach.
15831583

15841584
.. versionadded:: 2.1
1585-
It is now possible to add constraints directly to the fields using the
1586-
``constraints`` option, which accepts a single constraint or an array
1587-
of them.
1585+
Constraints can be added directly to fields using the ``constraints`` option,
1586+
which accepts a single constraint or an array of constraints (before 2.1,
1587+
the option was called ``validation_constraint``, and only accepted a single
1588+
constraint).
15881589

15891590
.. code-block:: php
15901591

0 commit comments

Comments
 (0)