Respect CSV delimiter option during import.

This commit is contained in:
Jan Böhmer 2019-04-13 20:03:04 +02:00
parent 1cbbc26e7a
commit 81bbedb949

View file

@ -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)) {