Additional Context
The problem occures when you have different dtos for input/output and they also have different ids for example id and uuid. Platform then uses operation class for fetching getOperationUriVariables instead of resource_class. Maybe it's ok, and I'm doing this in a wrong way.
API Platform version(s) affected: ^3.3
Description
I have a dto and api resource, updating order product count and returning the order dto:
Calling this controller leads to 400 Invalid identifier value or configuration error.
How to reproduce
Use dtos with different id fields for input/output with custom controller as in my example
Possible Solution
Place this check https://github.com/api-platform/core/commit/cc9f6a518222598d20556fc1ec62b7c4be52bf52#diff-6723d777fc70f000cb59deecf75e9a948f114ffd9ae63e284ca5821735b7cea3R105 before this one https://github.com/api-platform/core/commit/cc9f6a518222598d20556fc1ec62b7c4be52bf52#diff-6723d777fc70f000cb59deecf75e9a948f114ffd9ae63e284ca5821735b7cea3R77
Additional Context
The problem occures when you have different dtos for input/output and they also have different ids for example id and uuid. Platform then uses operation class for fetching getOperationUriVariables instead of resource_class. Maybe it's ok, and I'm doing this in a wrong way.