Removed filtering of null values in transformer
This commit is contained in:
parent
4baefe6686
commit
2e5bac1f52
2 changed files with 4 additions and 8 deletions
|
|
@ -49,9 +49,7 @@ class ModelToElasticaAutoTransformer implements ModelToElasticaTransformerInterf
|
|||
if (!method_exists($class, $getter)) {
|
||||
throw new RuntimeException(sprintf('The getter %s::%s does not exist', $class, $getter));
|
||||
}
|
||||
if (null !== $value = $this->normalizeValue($object->$getter())) {
|
||||
$array[$key] = $value;
|
||||
}
|
||||
$array[$key] = $this->normalizeValue($object->$getter());
|
||||
}
|
||||
$identifierGetter = 'get'.ucfirst($this->options['identifier']);
|
||||
$identifier = $object->$identifierGetter();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue