[Form] Added upgrade instructions to the UPGRADE file

This commit is contained in:
Bernhard Schussek 2012-11-27 23:24:28 +01:00
parent b94a256cc7
commit 1e34e91909
1 changed files with 20 additions and 0 deletions

View File

@ -64,6 +64,26 @@
Symfony\Component\Form\Exception namespace or to create custom exception
classes for your purpose.
* Translating validation errors is now optional. You can still do so
manually if you like, or you can simplify your templates to simply output
the already translated message.
Before:
```
{{
error.messagePluralization is null
? error.messageTemplate|trans(error.messageParameters, 'validators')
: error.messageTemplate|transchoice(error.messagePluralization, error.messageParameters, 'validators')
}}
```
After:
```
{{ error.message }}
```
#### Deprecations
* The methods `getParent()`, `setParent()` and `hasParent()` in