Answer the question
In order to leave comments, you need to log in
How to unlink controllers from Doctrine ORM?
Actually the opportunity to untie controllers from dokrina interests. There are no problems with selections, controllers are tied only to services / repositories, or rather, to their interface. But with the recording of the problem.
The problem lies in the flush method, which executes the transaction. If we put everything in a separate service/record manager, then in fact we have to manually control which objects this service can write to the database and which not. This again makes it difficult to work with related entities, etc.
I would be grateful for a hint in which direction to think.
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