Closed annervisser closed 1 year ago
Hi @annervisser ,
Thank for the report.
Would you be able to check if the pull request fixes your issue?
Thanks!
Yes, that PR should fix the issue :+1: Thanks for the effort of putting my test case in as actual test :smile:
as I can see the PR was already merged, is it missing something else here?
This should be fixed now in version https://github.com/schmittjoh/serializer/releases/tag/3.23.0 .
I'm still facing the same issue in release 3.23.0 :/
is it working for you on that version @annervisser ?
@annervisser do you mind to reopen this issue, I'm facing the same issue in 3.23.0
Edit: Sorry, I was just looking for the new fields that as added
{
"traditional": "default",
"traditionalWithSetter": "default",
+ "promoted": "default",
+ "promotedWithSetter": "default"
}
But I just realised that, the issue is because there is the suffix _fromsetter
. and Yeah, in the last version it's as expected
{
"traditional": "default",
"traditionalWithSetter": "default",
"promoted": "default",
"promotedWithSetter": "default"
}
Then, it's working ✅ :)
We were still facing an issue with 3.23.0
, so we're still running 3.17.1
.
Something to do with deserializationHandlers, we'll research this later & submit a proper issue.
But glad to hear it's fixed for you @eerison
We were still facing an issue with
3.23.0
, so we're still running3.17.1
. Something to do with deserializationHandlers, we'll research this later & submit a proper issue.But glad to hear it's fixed for you @eerison
Yep, This issue was "fixed" (But we have a different output.)
But I'm also facing others issues
Properties that have an Accessor setter, are called with the default property value whenever that class is deserialized
This is a BC break since 3.17.1. It happens since 3.18.0, specifically PR #1417
Steps required to reproduce the problem
Take an example class with both traditional and promoted properties, some with accessors:
$serializer->fromArray([], DefaultValuesAndAccessors::class)
Repo with reproduction: https://github.com/annervisser/jms-serializer-accessor-default-value-repro
Expected Result
Actual Result
output in 3.17.1:
output in 3.18.0: