From e98dc3a2ee6ae609c9ced8fb92e667b0ed0cbaaa Mon Sep 17 00:00:00 2001 From: Rich Sage Date: Thu, 10 Nov 2016 08:42:28 +0000 Subject: [PATCH 1/2] Clarify the mappings that require no method prefix. --- validation.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/validation.rst b/validation.rst index a87fae05305..764aa88f74b 100644 --- a/validation.rst +++ b/validation.rst @@ -639,9 +639,9 @@ Now, create the ``isPasswordLegal()`` method and include the logic you need:: .. note:: The keen-eyed among you will have noticed that the prefix of the getter - ("get", "is" or "has") is omitted in the mapping. This allows you to move - the constraint to a property with the same name later (or vice versa) - without changing your validation logic. + ("get", "is" or "has") is omitted in the mappings for YAML, XML and PHP. + This allows you to move the constraint to a property with the same name + later (or vice versa) without changing your validation logic. .. _validation-class-target: From 70ec2def5acc3cb2ca816a5a10a73e873865801d Mon Sep 17 00:00:00 2001 From: Rich Sage Date: Mon, 14 Nov 2016 08:38:29 +0000 Subject: [PATCH 2/2] Slightly reword as per PR review. --- validation.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/validation.rst b/validation.rst index 764aa88f74b..f7f613996e3 100644 --- a/validation.rst +++ b/validation.rst @@ -639,9 +639,9 @@ Now, create the ``isPasswordLegal()`` method and include the logic you need:: .. note:: The keen-eyed among you will have noticed that the prefix of the getter - ("get", "is" or "has") is omitted in the mappings for YAML, XML and PHP. - This allows you to move the constraint to a property with the same name - later (or vice versa) without changing your validation logic. + ("get", "is" or "has") is omitted in the mappings for the YAML, XML and PHP + formats. This allows you to move the constraint to a property with the same + name later (or vice versa) without changing your validation logic. .. _validation-class-target: