Skip to content

Commit e109eab

Browse files
VEBERArnaudxabbuh
authored andcommitted
docs: choice constraints reference
fix wrong yaml example for Choice Constraints
1 parent d93839c commit e109eab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reference/constraints/Choice.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ If your valid choice list is simple, you can pass them in directly via the
6262
# src/AppBundle/Resources/config/validation.yml
6363
AppBundle\Entity\Author:
6464
properties:
65-
city: [New York, Berlin, Tokyo]
65+
city:
66+
- Choice: [New York, Berlin, Tokyo]
6667
gender:
6768
- Choice:
6869
choices: [male, female]

0 commit comments

Comments
 (0)