Answer the question
In order to leave comments, you need to log in
How to add repositories from a bundle in Symfony?
I tried to separate the common code into a separate bundle. Entity got there along with Repository
entity repository implements "Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepositoryInterface", but its service could not be found. Make sure the service exists and is tagged with "doctrine.repository_service".
Vendor\MyBundle\Repository\ClassRepository:
tags: ['doctrine.repository_service']
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question