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
With extended classes, like below, deserialization dose not work proper.
class A {}
class B extends A {}
I understand how the "discriminator" works with class A, but when i call
$serializer->deserialize($data, 'B', 'json');
it should not be depended on how the discriminator work on A, but it should deserialize the data as B, i think.
ClassMetadata is selected correctly, but propertyMetadata is overwritten by A's property.
As serialization, it should use B's property rather than A's.
it may be caused by jms/metadata so i show you my versions
jms/metadata - 1.3.0
jms/serializer - 0.12.0
The text was updated successfully, but these errors were encountered:
With extended classes, like below, deserialization dose not work proper.
class A {}
class B extends A {}
I understand how the "discriminator" works with class A, but when i call
$serializer->deserialize($data, 'B', 'json');
it should not be depended on how the discriminator work on A, but it should deserialize the data as B, i think.
ClassMetadata is selected correctly, but propertyMetadata is overwritten by A's property.
As serialization, it should use B's property rather than A's.
it may be caused by jms/metadata so i show you my versions
jms/metadata - 1.3.0
jms/serializer - 0.12.0
The text was updated successfully, but these errors were encountered: