Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface problem in ObjectNormalizer #901

Open
ixtensa opened this issue Dec 10, 2019 · 0 comments
Open

Interface problem in ObjectNormalizer #901

ixtensa opened this issue Dec 10, 2019 · 0 comments

Comments

@ixtensa
Copy link

ixtensa commented Dec 10, 2019

I installed the Bundle (6.0.1) on my project and followed the docs to create a index.
Now I got this error:

Type error: Argument 3 passed to ONGR\ElasticsearchBundle\Mapping\ObjectNormalizer::__construct() must be an instance of Symfony\Component\Serializer\NameConverter\NameConverterInterface or null, instance of ONGR\ElasticsearchBundle\Mapping\NameConverter given, called in /PATH/var/cache/dev/ContainerFq9sxcg/getObjectNormalizerService.php on line 8

I fixed it temporarily by editing /Mapping/NameConverter.php:

use Symfony\Component\Serializer\NameConverter\NameConverterInterface;

class NameConverter implements NameConverterInterface, AdvancedNameConverterInterface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant