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
Which produces a uri eg: /responses/id=22133;verificationKey=7d75af772e637e45c36d041696e1128d
During the UriVariablesConverter::convert method, both values are cast to integer, which is incorrect because verificationKey in above case is cast to 7, which creates the wrong query in Provider.
Possible Solution
I have created a similar transformer, but with one addition
Indeed its hard to handle all cases on that matter. Prefer using string everywhere for identifiers and avoid multiple identifier properties if possible.
Your solution is good there's probably something we can improve there I'll transfer this to core
API Platform version(s) affected: 2.7.9 and 3.0+
Description
I have a ApiResource with 2 identifiers:
Which produces a uri eg:
/responses/id=22133;verificationKey=7d75af772e637e45c36d041696e1128d
During the
UriVariablesConverter::convert
method, both values are cast to integer, which is incorrect because verificationKey in above case is cast to7
, which creates the wrong query in Provider.Possible Solution
I have created a similar transformer, but with one addition
I not sure this is the right way to address the issue, and if even my use-case is supported.
The text was updated successfully, but these errors were encountered: