Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deserialization not work proper with inherited classes. #102

Open
y1o1 opened this issue Jun 11, 2013 · 0 comments
Open

Deserialization not work proper with inherited classes. #102

y1o1 opened this issue Jun 11, 2013 · 0 comments
Labels

Comments

@y1o1
Copy link

y1o1 commented Jun 11, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants