banan11 Posted May 17, 2020 Share Posted May 17, 2020 I have service using repository which works great in back office. I have noticed that my hook is running both back and front. Of course, the service was not found in the front. I defined the service as in the documentation with include in 3 services.yml files. It found my service, but couldn't find My\NS\Repository\SomeRepository.php repository class. Service definition # alias doenst work 2 My\NS\Repository\SomeRepository: class: My\NS\Repository\SomeRepository arguments: $dbPrefix: '%database_prefix%' I use Doctrine\Common\Persistence\ObjectRepository in my repository class. How to fix class My\NS\Repository\SomeRepository not found error? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now