Answer the question
In order to leave comments, you need to log in
How to work with doctrine outside AbstractController?
Good afternoon. Tell me how to work with getDoctrine() ->getRepository(ProductType::class) if I don't include AbstractController
Answer the question
In order to leave comments, you need to log in
Through dependency injection. In the container, the doctrine is available through the EntityManagerInterface
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question