Skip to content

Commit

Permalink
docs: choice constraints reference
Browse files Browse the repository at this point in the history
fix wrong yaml example for Choice Constraints
  • Loading branch information
VEBERArnaud authored and xabbuh committed Apr 8, 2017
1 parent d93839c commit e109eab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reference/constraints/Choice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit e109eab

Please sign in to comment.