Exercise/FOQElasticaBundle — comment on commit a3f4c95e9c1e8ef9370072948c9b5ca52a5c6e4e
File: Transformer/ModelToElasticaAutoTransformer.php line 91
By jmikola:

@richardmiller: Could we change the last bit of the `transform()` method to:

```
foreach ($array as $key => $value) {
if (null === $value) {
unset($array[$key]);
}
}

return new Elastica_Document($identifier, $array);
```

Alternatively, we can keep the `filterOutStrictlyNullValues()` method and just use a `foreach` internally. I'd suggest making the method itself private unless otherwise required to be available to an inheriting class.