You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first up, thanks for creating and maintaining such a wonderful piece of software!
I use the Doctrine ORM driver for my project in combination with Version 6.2.0 of this bundle.
I have a use-case where it would be useful for me have another Service to be injected into a custom ElasticaToModelTransformer.
When I add no additional Services, I can already use my custom Transformer,
but whenever I try to add another Service into the Constructor,
it seems that the Index ist not registered in the RepositoryManager.
Every way I tried so far ended either with the Message No repository is configured for index "objects".
I've already tried to extend FOS\ElasticaBundle\Transformer\AbstractElasticaToModelTransformer, FOS\ElasticaBundle\Doctrine\AbstractElasticaToModelTransformer and to just implement the FOS\ElasticaBundle\Transformer\ElasticaToModelTransformerInterface.
Here is my configuration:
fos_elastica:
clients:
default: { url: 'http://elasticsearch:9200/' }indexes:
objects:
persistence:
driver: orm #the driver can be orm, mongodb or phpcrmodel: ACME\Entity\ACMEObjectmodel_to_elastica_transformer:
service: ACME\Transformer\ACMEObjectModelToElasticaTransformerelastica_to_model_transformer:
service: ACME\Transformer\ElasticaToACMEObjectModelTransformerpersister:
service: ACME\Persister\ObjectPersisterlistener:
logger: true
Is it just not possible to add another Service via autowire / autoconfigure or do I have to decorate a service to overwrite the parameters?
If any information is missing that you need to have, let me know and I will update my question accordingly.
Thanks for any help in advance!
The text was updated successfully, but these errors were encountered:
Hi,
first up, thanks for creating and maintaining such a wonderful piece of software!
I use the Doctrine ORM driver for my project in combination with Version 6.2.0 of this bundle.
I have a use-case where it would be useful for me have another Service to be injected into a custom ElasticaToModelTransformer.
When I add no additional Services, I can already use my custom Transformer,
but whenever I try to add another Service into the Constructor,
it seems that the Index ist not registered in the RepositoryManager.
Every way I tried so far ended either with the Message
No repository is configured for index "objects"
.I've already tried to extend
FOS\ElasticaBundle\Transformer\AbstractElasticaToModelTransformer
,FOS\ElasticaBundle\Doctrine\AbstractElasticaToModelTransformer
and to just implement theFOS\ElasticaBundle\Transformer\ElasticaToModelTransformerInterface
.Here is my configuration:
Is it just not possible to add another Service via autowire / autoconfigure or do I have to decorate a service to overwrite the parameters?
If any information is missing that you need to have, let me know and I will update my question accordingly.
Thanks for any help in advance!
The text was updated successfully, but these errors were encountered: