From 81bbedb949c159d197a01c92316a22a5bdc29b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 13 Apr 2019 20:03:04 +0200 Subject: [PATCH] Respect CSV delimiter option during import. --- src/Services/EntityImporter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Services/EntityImporter.php b/src/Services/EntityImporter.php index 7772bee7..9fb1b103 100644 --- a/src/Services/EntityImporter.php +++ b/src/Services/EntityImporter.php @@ -137,7 +137,8 @@ class EntityImporter } //The [] behind class_name denotes that we expect an array. - $entities = $this->serializer->deserialize($content, $class_name . '[]', $options['format'], ['groups' => $groups]); + $entities = $this->serializer->deserialize($content, $class_name . '[]', $options['format'], + ['groups' => $groups, 'csv_delimiter' => $options['csv_separator']]); //Ensure we have an array of entitity elements. if(!is_array($entities)) {