S
S
Sergey2013-11-13 22:54:10
symfony
Sergey, 2013-11-13 22:54:10

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

1 answer(s)
N
Nikita Gusakov, 2013-11-13
@hell0w0rd

By KERNAL::TERMINATE use flush?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question