FOSElasticaBundle
FOSElasticaBundle copied to clipboard
Auto persist with relation
Dear,
I have on entity "Societe" with "Pays" with ManyToMany. When i update a "Societe" the index pays will not update, but it is with the command fos:elastic:populate. I anybody to help me ?
My fos_elastica_bundle.yml :
indexes:
app_societe:
types:
societe:
properties:
societe:
type: text
property_path: nom
id_annuaire:
type: integer
property_path: annuaire.id
enabled:
type: boolean
date_fin_premium:
type: date
# format: basic_date_time
property_path: date_fin_premium
tags_societes:
property_path: 'getTagsSocieteIndexable'
secteurs:
property_path: 'getSecteursIndexable'
activites:
property_path: 'getActivitesIndexable'
sous_activites:
property_path: 'getSousActivitesIndexable'
cibles:
property_path: 'getCiblesIndexable'
evenements:
property_path: 'getEvenementsExposantIndexable'
pays_chalandise:
property_path: 'getPaysChalandiseIndexable'
region_chalandise:
property_path: 'getRegionChalandiseIndexable'
departement_chalandise:
property_path: 'getDepartementChalandiseIndexable'
persistence:
driver: orm
model: App\Entity\Societe
provider: ~
finder: ~
listener:
insert: true
update: true
delete: true
elastica_to_model_transformer:
query_builder_method: createSearchQueryBuilder