Skip to content
This repository has been archived by the owner on Aug 3, 2018. It is now read-only.

Error when rendering results #95

Open
einorler opened this issue Jun 26, 2018 · 2 comments · May be fixed by #97
Open

Error when rendering results #95

einorler opened this issue Jun 26, 2018 · 2 comments · May be fixed by #97

Comments

@einorler
Copy link

When I try rendering results got from filter manager in twig I get an error:

Type error: Argument 1 passed to Sylius\ElasticSearchPlugin\Document\TaxonDocument::setImages() must be an instance of ONGR\ElasticsearchBundle\Collection\Collection, instance of ONGR\ElasticsearchBundle\Result\ObjectIterator given, called in /Users/m/Projects/omni/sylius-standard/vendor/ongr/elasticsearch-bundle/Result/Converter.php on line 134

@einorler
Copy link
Author

There shouldn't be any setters to collection variables. In stead there should be add methods, as described in documentation: http://docs.ongr.io/ElasticsearchBundle/mapping

@einorler
Copy link
Author

Plus the ONGR\ElasticsearchBundle\Collection\Collection that is used to instantiate collections in the constructors of documents is deprecated

@einorler einorler linked a pull request Jun 28, 2018 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant