From 7717d4d580e676dd65de14206212665129cd7e00 Mon Sep 17 00:00:00 2001 From: craig Date: Thu, 29 Nov 2012 14:32:47 +0000 Subject: [PATCH] Remove exception when multi_field type is used --- Transformer/ModelToElasticaAutoTransformer.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/Transformer/ModelToElasticaAutoTransformer.php b/Transformer/ModelToElasticaAutoTransformer.php index cc76e8f..aa649e2 100644 --- a/Transformer/ModelToElasticaAutoTransformer.php +++ b/Transformer/ModelToElasticaAutoTransformer.php @@ -53,8 +53,6 @@ class ModelToElasticaAutoTransformer implements ModelToElasticaTransformerInterf $submapping = $mapping['properties']; $subcollection = $property->getValue($object); $document->add($key, $this->transformNested($subcollection, $submapping, $document)); - } else if (isset($mapping['type']) && $mapping['type'] == 'multi_field') { - throw new \Exception('Please implement me !'); } else if (isset($mapping['type']) && $mapping['type'] == 'attachment') { $attachment = $property->getValue($object); if ($attachment instanceof \SplFileInfo) {