Skip to content

createQueryBuilder not in all resource interfaces #1059

@stefandoorn

Description

@stefandoorn

Description

Hi,

I just noticed that e.g. in the ProductRepositoryInterface the method createQueryBuilder is not defined. It's available though via ResourceRepositoryTrait in most/all resources.

I have an implementation (https://github.com/stefandoorn/sitemap-plugin/blob/master/src/Provider/Data/ProductDataProvider.php#L23) where I would like to use an interface though, as currently I only see an option to have the actual implementation as a dependency in the constructor.

Could this method be added to more interfaces (I see some have it) and if not, what would be my best solution here to ensure an interface can be used instead of a concrete implementation?

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementMinor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).FeatureNew feature proposals.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions