8000 docs: choice constraints reference by VEBERArnaud · Pull Request #7758 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

docs: choice constraints reference #7758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
8000
Diff view
Diff view
docs: choice constraints reference
fix wrong yaml example for Choice Constraints
  • Loading branch information
VEBERArnaud committed Apr 5, 2017
commit cfba67a584259dc2406290929390f564f096f398
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