From b5ba2e3dd6aee2a98665c323f50feb90b14e7ba2 Mon Sep 17 00:00:00 2001 From: Luca Rath-Heel Date: Mon, 14 Feb 2022 19:41:59 +0100 Subject: [PATCH] Fix ONGRElasticsearchExtension with multiple mappers with config (#24) --- DependencyInjection/ONGRElasticsearchExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/ONGRElasticsearchExtension.php b/DependencyInjection/ONGRElasticsearchExtension.php index a42172b4..638b8857 100644 --- a/DependencyInjection/ONGRElasticsearchExtension.php +++ b/DependencyInjection/ONGRElasticsearchExtension.php @@ -44,7 +44,7 @@ public function load(array $configs, ContainerBuilder $container) $managers = $config['managers']; foreach ($managers as &$manager) { - $manager['mappings'] = array_unique($manager['mappings']); + $manager['mappings'] = array_unique($manager['mappings'], SORT_REGULAR); } $container->setParameter('es.cache', $config['cache']); $container->setParameter('es.analysis', $config['analysis']);