From ed3bdf65b85978505512551bb7a138c628027052 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Thu, 27 Oct 2016 22:57:01 +0200 Subject: [PATCH] Also mention "hassers" At least in http://symfony.com/doc/current/validation.html, "hasXXX" methods are mentioned in addition to "getXXX" and "isXXX". --- components/validator/metadata.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/validator/metadata.rst b/components/validator/metadata.rst index 645ab9f0ac9..348644eae75 100755 --- a/components/validator/metadata.rst +++ b/components/validator/metadata.rst @@ -36,8 +36,8 @@ Getters ------- Constraints can also be applied to the value returned by any public *getter* -method, which are the methods whose names start with ``get`` or ``is``. This -feature allows to validate your objects dynamically. +method, which are the methods whose names start with ``get``, ``has`` or ``is``. +This feature allows to validate your objects dynamically. Suppose that, for security reasons, you want to validate that a password field doesn't match the first name of the user. First, create a public method called