Skip to content

[Form] Add examples for submitting PATCH requests without handleRequest() #6415

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

Closed
michaeljoelphillips opened this issue Mar 30, 2016 · 3 comments
Labels
hasPR A Pull Request has already been submitted for this issue.

Comments

@michaeljoelphillips
Copy link

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 the submit() function if it sounds useful to anyone else.

@HeahDude
Copy link
Contributor

Good idea! 👍

@xabbuh
Copy link
Member

xabbuh commented Mar 31, 2016

Sounds like a good idea to me.

@Nomad145 We welcome every pull request that tries to improve the documentation. :)

@michaeljoelphillips
Copy link
Author

Sweet! I'll see what I can do!

@xabbuh xabbuh added the hasPR A Pull Request has already been submitted for this issue. label Apr 1, 2016
xabbuh added a commit that referenced this issue Apr 6, 2016
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hasPR A Pull Request has already been submitted for this issue.
Projects
None yet
Development

No branches or pull requests

3 participants