Skip to content

Commit

Permalink
Documenting how to keep option value BC - see symfony#14377
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Jun 1, 2015
1 parent 1dbf67e commit deb9db8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UPGRADE-2.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ Form
'Ignored' => Status::IGNORED,
),
'choices_as_values' => true,
// important if you rely on your option value attribute (e.g. for JavaScript)
// this will keep the same functionality as before
'choice_value' => function ($choice) {
return $choice;
},
));
```

Expand Down

0 comments on commit deb9db8

Please sign in to comment.