ongr-io / ElasticsearchBundle

Symfony bundle for Elasticsearch with steroids
MIT License
313 stars 189 forks source link

Documents of inherited classes cannot be converted to arrays #940

Open 0x6368 opened 4 years ago

0x6368 commented 4 years ago

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.