You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a specific use case where a single page application was submitting a form to a REST API without a submit button via an HTTP PATCH method. I had read somewhere (probably StackOverflow) that handleRequest() handles partial updates since Symfony 2.x, but since there wasn't a submit button, handleRequest() wouldn't submit the form.
Long story short, I wasn't able to find documentation regarding a solution until I saw the API for the submit() function with the optional $clearMissing parameter. I'm willing to submit a PR with this use case highlighting the ability to do partial updates via the submit() function if it sounds useful to anyone else.
The text was updated successfully, but these errors were encountered:
…ons. (Michael Phillips)
This PR was merged into the 2.3 branch.
Discussion
----------
Added tip for optional second parameter for form submissions.
| Q | A
| ------------- | ---
| Doc fix? | yes
| New docs? | no
| Applies to | all
| Fixed tickets | #6415
Commits
-------
153219a Added tip for optional second parameter for form submissions.
Greetings,
I ran into a specific use case where a single page application was submitting a form to a REST API without a submit button via an HTTP PATCH method. I had read somewhere (probably StackOverflow) that
handleRequest()
handles partial updates since Symfony 2.x, but since there wasn't a submit button,handleRequest()
wouldn't submit the form.Long story short, I wasn't able to find documentation regarding a solution until I saw the API for the
submit()
function with the optional$clearMissing
parameter. I'm willing to submit a PR with this use case highlighting the ability to do partial updates via thesubmit()
function if it sounds useful to anyone else.The text was updated successfully, but these errors were encountered: