Exercise/FOQElasticaBundle — Issue #66: Implement own ElasticaToModelTransformer
Author: kimausloos
Created: 2012-01-24 16:22:58+00:00
State: open

Hi,

I'm trying to implement a custom ElasticaToModelTransformer. In the config for the index I've added the following parameters:

elastica_to_model_transformer:
service: my_search.transformers.elasticatransformer

And the service definition is:
my_search.transformers.elasticatransformer:
class: Company\SearchBundle\Transformers\ElasticaTransformer

When I try to run I get the following error:
Warning: Missing argument 1 for FOQ\ElasticaBundle\Doctrine\AbstractElasticaToModelTransformer::__construct()

Do you have any idea how I can add the parameters to the service so AbstractElasticaToModelTransformer has all parameters the constructor needs? When I look at the constructor I see it takes the EM, which I can take care off, but I don't know how to access the string and array with options.

Regards,
Kim