symfony/symfony — pull request #7512 by raziel057 (2013-03-28 19:47:49+00:00)
Title: [Form] Add getErrorsAsArray method

Usefull to return form errors through JsonResponse.

See https://github.com/symfony/symfony/issues/7205

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR | Is it needed for this kind of addition?

modified: src/Symfony/Component/Form/Form.php
modified: src/Symfony/Component/Form/Tests/CompoundFormTest.php
modified: src/Symfony/Component/Form/Tests/SimpleFormTest.php