Skip to content
Browse files

fixed generating indexes for false fields

  • Loading branch information...
1 parent d67cd8f commit 99b31a6e173a3dd7f8b332ef2ac1dbbe02be2379 @AlexKovalevych AlexKovalevych committed Feb 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Transformer/ModelToElasticaAutoTransformer.php
View
2 Transformer/ModelToElasticaAutoTransformer.php
@@ -54,7 +54,7 @@ public function transform($object, array $fields)
$identifierGetter = 'get'.ucfirst($this->options['identifier']);
$identifier = $object->$identifierGetter();
- return new Elastica_Document($identifier, array_filter($array));
+ return new Elastica_Document($identifier, $array);
}
/**

0 comments on commit 99b31a6

Please sign in to comment.
Something went wrong with that request. Please try again.