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

[Form] Fix form data related events definition #18587

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

HeahDude
Copy link
Contributor

The PRE_SET_DATA event is not safe to modify a form based on the data since the data can still be changed by listeners.
POST_SET_DATA should be used instead.

@javiereguiluz
Copy link
Member

Jules, thanks for taking care of fixing obscure/complex bugs like this in the docs.

@javiereguiluz javiereguiluz merged commit cf269d6 into symfony:5.4 Jul 20, 2023
3 checks passed
@HeahDude HeahDude deleted the fix-using-form-events branch July 20, 2023 11:03
nicolas-grekas added a commit to symfony/symfony that referenced this pull request Jul 21, 2023
This PR was merged into the 5.4 branch.

Discussion
----------

[Form] Fix form events phpdocs

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | ~
| License       | MIT
| Doc PR        | ~

Sibling of symfony/symfony-docs#18587.

Commits
-------

2032b5b [Form] Fix form events phpdocs
symfony-splitter pushed a commit to symfony/form that referenced this pull request Jul 21, 2023
This PR was merged into the 5.4 branch.

Discussion
----------

[Form] Fix form events phpdocs

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | ~
| License       | MIT
| Doc PR        | ~

Sibling of symfony/symfony-docs#18587.

Commits
-------

2032b5bd8b [Form] Fix form events phpdocs
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants