From e109eaba9459e128c75fe6a5cc94aae47c983449 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 49879c966c6..be0aa3eb650 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]