K
K
Kolya Vantukh2020-11-05 17:09:05
Doctrine ORM
Kolya Vantukh, 2020-11-05 17:09:05

When does a database connection close in Doctrine?

Installed Doctrine2 as an ORM in a pure php project. I create an entity manager at the entry point $em = EntityManager::create($conn, $config);, if I understand correctly, then at this moment a connection to the database is created. It turns out that if I do not manually call $em->getConnection()->close();, then the connection will not be closed, right?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question