floriansemm / SolrBundle

Solr-Integration into Symfony and Doctrine2
http://floriansemm.github.io/SolrBundle
MIT License
123 stars 73 forks source link

Jkwakman field alias doctrine relation #182

Closed jkwakman closed 6 years ago

jkwakman commented 6 years ago

When using the OnetoMany relation we often do not want the parameter name as the fieldname in the Solr database. For example..

Company -> Orders ($orders) -> getOrderNumber()

Here the fieldname will be casted to orders_ss in the solr_database. Instead we want order_id_ss.

To arrange this behaviour we added the fieldAlias in the annotation.