8000 minor #7758 docs: choice constraints reference (VEBERArnaud) · medinae/symfony-docs@68deeb8 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 68deeb8

Browse files
committed
minor symfony#7758 docs: choice constraints reference (VEBERArnaud)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes symfony#7758). Discussion ---------- docs: choice constraints reference ## Description fix wrong yaml example for Choice Constraints Commits ------- e109eab docs: choice constraints reference
2 parents d93839c + e109eab commit 68deeb8

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)
0