ongr-io / ElasticsearchBundle

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

do not remove fields with falsy values while persisting #896

Closed wasinger closed 4 years ago

wasinger commented 4 years ago

Fixes #891 for me.

But maybe it would be even better to remove the array_filter call completely from the persist method and remove the unset properties in the Converter::convertDocumentToArray method.