Skip to content

Instantly share code, notes, and snippets.

@emil-nasso
Created June 10, 2015 10:16
Show Gist options
  • Save emil-nasso/1c5f9025aa59ef26dabb to your computer and use it in GitHub Desktop.
Save emil-nasso/1c5f9025aa59ef26dabb to your computer and use it in GitHub Desktop.
->add('currency', 'text', [
'constraints' => [
new NotBlank(),
new Choice(['choices' => ['EUR', 'SEK']]),
]
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment