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

Missing document interfaces for customisation #96

Open
einorler opened this issue Jun 26, 2018 · 0 comments
Open

Missing document interfaces for customisation #96

einorler opened this issue Jun 26, 2018 · 0 comments

Comments

@einorler
Copy link

There is a way to define your own custom classes for documents in configuration in case one needs to override the default ones, however there are no interfaces for documents and the factories are inclined to return objects from Omni\Sylius\ElasticsearchPlugin\Document namespace as shown here:

public function create(TaxonInterface $taxon, LocaleInterface $localeCode, ?int $position = null): TaxonDocument;

This means that there is no way for me to completely override the document classes and I can only extend on defaults. But that denies me a possibility to locally fix the error comming from ill formed collection setter methods

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant