Doctrinebundle: ManagerRegistery should reset entity managers on kernel.reset

Created on 2 Dec 2019  路  2Comments  路  Source: doctrine/DoctrineBundle

Follow up of https://github.com/symfony/symfony/issues/34720

ManagerRegistry is able to reset entity managers, but I think we missed wiring this capability with the kernel.reset tag so that EM are reset between requests in long-running loops.

Given the dependency on LazyLoadingInterface, this should be done only when the interface is found of course.

Bug

Most helpful comment

I can take a look later today. Treating as a bug for now so we can also fix this in 1.12, otherwise we'd have this in 2.1 only.

All 2 comments

I can take a look later today. Treating as a bug for now so we can also fix this in 1.12, otherwise we'd have this in 2.1 only.

Fixed in #1099, will be released in 1.12.3.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

garak picture garak  路  3Comments

dmaicher picture dmaicher  路  6Comments

soullivaneuh picture soullivaneuh  路  3Comments

KartaviK picture KartaviK  路  4Comments

scourgen picture scourgen  路  8Comments