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

Missing document interfaces for customisation #96

@einorler

Description

@einorler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions