Skip to content

Commit

Permalink
minor #7758 docs: choice constraints reference (VEBERArnaud)
Browse files Browse the repository at this point in the history
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #7758).

Discussion
----------

docs: choice constraints reference

## Description

fix wrong yaml example for Choice Constraints

Commits
-------

e109eab docs: choice constraints reference
  • Loading branch information
xabbuh committed Apr 8, 2017
2 parents d93839c + e109eab commit 68deeb8
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 68deeb8

Please sign in to comment.