M
M
miy2016-08-31 15:37:01
symfony
miy, 2016-08-31 15:37:01

Where do you call the doctrine flush() method to save a record to the DB?

Good afternoon! Interested in the place where you call the flush () method (controller, service, repository ..) And I will also be glad if you share best practices.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Kulikovsky, 2016-08-31
@miy

1. Always in the controller.
2. Similar Question - Doctrine ORM Best practices?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question