Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document new Form::getErrors() parameters #3660

Closed
xabbuh opened this issue Mar 11, 2014 · 1 comment
Closed

Document new Form::getErrors() parameters #3660

xabbuh opened this issue Mar 11, 2014 · 1 comment
Labels
actionable Clear and specific issues ready for anyone to take them. DX Form good first issue Ideal for your first contribution! (some Symfony experience may be required)
Milestone

Comments

@xabbuh
Copy link
Member

xabbuh commented Mar 11, 2014

The Form::getErrors() method got two new parameters, $deep and $flatten (see symfony/symfony#9918).

@wouterj wouterj added this to the 2.5 milestone Mar 11, 2014
@weaverryan weaverryan added the DX label Jul 5, 2014
@weaverryan
Copy link
Member

Added the DX label. I didn't realize this feature existed! And it's so common that people want to get a flat array of their errors. So, this is awesome!

weaverryan added a commit that referenced this issue Oct 28, 2014
…xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[Components][Form] describe how to access form errors

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

The ``getErrors()`` and ``getErrorsAsString()`` methods haven't been documented before. This pull request adds a short description for them. This forms as basis for the solution of #3660.

Commits
-------

5deccd2 describe how to access form errors
weaverryan added a commit that referenced this issue Nov 20, 2014
…rors() (xabbuh)

This PR was merged into the 2.5 branch.

Discussion
----------

[Components][Form] document $deep and $flatten of getErrors()

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes (symfony/symfony#9918)
| Applies to    | 2.5+
| Fixed tickets | #3660

This is based on #4168.

Commits
-------

0245e91 [Form] document $deep and $flatten of getErrors()
4221db8 describe how to access form errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionable Clear and specific issues ready for anyone to take them. DX Form good first issue Ideal for your first contribution! (some Symfony experience may be required)
Projects
None yet
Development

No branches or pull requests

3 participants