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

Documents of inherited classes cannot be converted to arrays #940

Open
0x6368 opened this issue May 13, 2020 · 0 comments · May be fixed by #941
Open

Documents of inherited classes cannot be converted to arrays #940

0x6368 opened this issue May 13, 2020 · 0 comments · May be fixed by #941

Comments

@0x6368
Copy link

0x6368 commented May 13, 2020

Right now, it is not possible to convert documents of inherited class, even if one of the parent classes has the @ES\Index annotation.

If this was possible, you could get Doctrine entities from the database and then persist them to Elasticsearch.
The Doctrine entities, you get from a query of a class inherited by the original entity class.

You can read more about proxy objects here.

@0x6368 0x6368 linked a pull request May 13, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant