FOSElasticaBundle icon indicating copy to clipboard operation
FOSElasticaBundle copied to clipboard

How to set field type in transformer

Open robert0770 opened this issue 5 years ago • 0 comments

my date field is text type... 'addDate' => $offer->getAddDate() ? $offer->getAddDate()->format('c') : null, my price is text type.... 'price' => $offer->getPrice(), when i 'price' => (double) $offer->getPrice(),

i get error

Error in one or more bulk request actions: index: /app_offer/offer/621 caused mapper [price] cannot be changed from type [long] to [float]

how to set it like by yaml configuration?

robert0770 avatar Feb 27 '20 17:02 robert0770