Skip to content

Commit bb9004e

Browse files
committed
Add "versionadded" directive for 2.5
1 parent bfe3a20 commit bb9004e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

book/validation.rst

+3
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,9 @@ allows you to add a constraint to any public method whose name starts with
586586
"get", "is" or "has". In this guide, these types of methods are referred to
587587
as "getters".
588588

589+
.. versionadded:: 2.5
590+
Support for methods starting with ``has`` is new in Symfony 2.5.
591+
589592
The benefit of this technique is that it allows you to validate your object
590593
dynamically. For example, suppose you want to make sure that a password field
591594
doesn't match the first name of the user (for security reasons). You can

0 commit comments

Comments
 (0)