symfony/symfony — pull request #12528 by bwoodmansee (2014-11-20 19:12:33+00:00)
Title: [Form] Allow override of ValidationMapper::acceptsErrors

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -

It would be useful to have the ability to decide if the form will accept errors. We have found that in certain use cases this functionality would be needed. For example, we have a use case where a user is uploading a large amount of product data via spreadsheet. We present validation errors for individual products using the form component. In this case, since the data is "submitted" via the file upload, it is no longer possible to use form to present errors as the form has not been submitted in the conventional sense.

Related:
https://github.com/symfony/symfony/pull/10567