From 687fea62ec2d326f0b63b866b152f8de46c30e23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Agull=C3=B3?= Date: Wed, 13 Mar 2013 10:29:55 +0100 Subject: [PATCH 1/3] Add information on code property population As per symfony/symfony#7276. --- book/validation.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/book/validation.rst b/book/validation.rst index 1bbfe31fb72..7ec856dd44d 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -1,4 +1,4 @@ -.. index:: +keen.. index:: single: Validation Validation @@ -462,6 +462,8 @@ options can be specified in this way. This is purely meant to make the configuration of the most common option of a constraint shorter and quicker. +Every constraint has an extra option, `code`, which allows you to specify an error code on a per-use basis. + If you're ever unsure of how to specify an option, either check the API documentation for the constraint or play it safe by always passing in an array of options (the first method shown above). From 6c0598586ff60da32e012350c810ae64591c8868 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Agull=C3=B3?= Date: Wed, 13 Mar 2013 10:42:57 +0100 Subject: [PATCH 2/3] Fixing typo and formatting --- book/validation.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/book/validation.rst b/book/validation.rst index 7ec856dd44d..cc5b5edec50 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -1,4 +1,4 @@ -keen.. index:: +.. index:: single: Validation Validation @@ -462,7 +462,8 @@ options can be specified in this way. This is purely meant to make the configuration of the most common option of a constraint shorter and quicker. -Every constraint has an extra option, `code`, which allows you to specify an error code on a per-use basis. +Every constraint has an extra option, `code`, which allows you to specify an error +code on a per-use basis. If you're ever unsure of how to specify an option, either check the API documentation for the constraint or play it safe by always passing in an array of options From 3443fbce4ce9e7e01aad22126d5dd6b3f4606a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Agull=C3=B3?= Date: Wed, 13 Mar 2013 16:02:21 +0100 Subject: [PATCH 3/3] Fixed single ticks to double --- book/validation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/validation.rst b/book/validation.rst index cc5b5edec50..a9e622f546e 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -462,7 +462,7 @@ options can be specified in this way. This is purely meant to make the configuration of the most common option of a constraint shorter and quicker. -Every constraint has an extra option, `code`, which allows you to specify an error +Every constraint has an extra option, ``code``, which allows you to specify an error code on a per-use basis. If you're ever unsure of how to specify an option, either check the API documentation