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

Serialize a subclass #735

Closed
dTrimon opened this issue Mar 22, 2017 · 1 comment
Closed

Serialize a subclass #735

dTrimon opened this issue Mar 22, 2017 · 1 comment

Comments

@dTrimon
Copy link

dTrimon commented Mar 22, 2017

Hello,
Not sure I'm doing the right thing, but you could drive me on the good path!
I'm trying tu use bundle inheritance for the first time.
I came to inherit my entities without abstract class
I created an discriminatorColumn in doctrine configuration.
So far it is working as expected.
What puzzles me with abstract calss was the fact that many2many link are not possible.

But when comming to serialization, only my parent class is serialized, Chid class is forgotten!
I tried to add the discriminator in my serialization yml file, using the same mapping as in doctrine: no success.
I'm using 1.1.0 version.
Any help appreciated.
Thanks

@dTrimon
Copy link
Author

dTrimon commented Mar 22, 2017

My fault! My database was corrupted! forget it

@dTrimon dTrimon closed this as completed Mar 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant