Description
It is possible to use a repository that inherits from ServiceEntityRepository but not a repository that "just" implements ServiceEntityRepositoryInterface. Besides it's useful when you already extends from some other base repository.
Steps to reproduce
Create a repository that implements ServiceEntityRepositoryInterface
Sylius version affected: all
Description
It is possible to use a repository that inherits from
ServiceEntityRepository
but not a repository that "just" implementsServiceEntityRepositoryInterface
. Besides it's useful when you already extends from some other base repository.Steps to reproduce
ServiceEntityRepositoryInterface
Possible Solution
Check against the interface instead of the class.
https://github.com/Sylius/SyliusResourceBundle/blob/01132cb4646da060b573ba46ff8e22e21d064181/src/Bundle/DependencyInjection/Driver/Doctrine/DoctrineORMDriver.php#L74