From cfba67a584259dc2406290929390f564f096f398 Mon Sep 17 00:00:00 2001 From: VEBER Arnaud Date: Wed, 5 Apr 2017 23:21:00 +0200 Subject: [PATCH] docs: choice constraints reference fix wrong yaml example for Choice Constraints --- reference/constraints/Choice.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reference/constraints/Choice.rst b/reference/constraints/Choice.rst index 215baab84dc..ce41a4b9fad 100644 --- a/reference/constraints/Choice.rst +++ b/reference/constraints/Choice.rst @@ -62,7 +62,8 @@ If your valid choice list is simple, you can pass them in directly via the # src/AppBundle/Resources/config/validation.yml AppBundle\Entity\Author: properties: - city: [New York, Berlin, Tokyo] + city: + - Choice: [New York, Berlin, Tokyo] gender: - Choice: choices: [male, female]