How to get new value in \ApiPlatform\State\ProcessorInterface::process? #5116
Unanswered
stephanvierkant
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to implement our issue tracker into the API Platform (v3) within our Symfony application. Therefor I'm using a DTO and a State Provider and Processor. My Provider is working fine, but I can't get my Processor working.
When I use a patch method, my issue doesn't get updated:
returns
{ "state": "Open"}
Here is my Issue DTO:
And this is my IssueProcessor which is a Provider as well. It fetches and patches my issues from/to the external web service.
I can't understand how to fetch the fields from the
PATCH
command.$data
holds anIssue
object with the old data.How can I use a DTO to update my Issue?
Beta Was this translation helpful? Give feedback.
All reactions