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

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy