Skip to content

Commit

Permalink
Add "versionadded" directive for 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
bicpi committed Jan 4, 2014
1 parent bfe3a20 commit bb9004e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions book/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,9 @@ allows you to add a constraint to any public method whose name starts with
"get", "is" or "has". In this guide, these types of methods are referred to
as "getters".

.. versionadded:: 2.5
Support for methods starting with ``has`` is new in Symfony 2.5.

The benefit of this technique is that it allows you to validate your object
dynamically. For example, suppose you want to make sure that a password field
doesn't match the first name of the user (for security reasons). You can
Expand Down

0 comments on commit bb9004e

Please sign in to comment.