Skip to content

Commit

Permalink
[Form] Added upgrade instructions to the UPGRADE file
Browse files Browse the repository at this point in the history
  • Loading branch information
webmozart committed Jan 8, 2013
1 parent b94a256 commit 1e34e91
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions UPGRADE-2.2.md
Expand Up @@ -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
Expand Down

0 comments on commit 1e34e91

Please sign in to comment.