You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my installation above, HandleMonitorStampListener will be executed first.
The problem is that if there are unflushed entities, messenger-monitor-bundle will inadvertently flush them. On the other hand, without messenger-monitor-bundle, DoctrineClearEntityManagerWorkerSubscriber will clear these pending entities, and they won't be flushed. So we are getting different behaviors depending on whether messenger-monitor-bundle is installed or not.
I propose lowering the priority of HandleMonitorStampListener to something like -100, so that DoctrineClearEntityManagerWorkerSubscriber always runs earlier to clear the unflushed entities.
Also, ORMStorage should also call clear() after flush().
The text was updated successfully, but these errors were encountered:
Currently
HandleMonitorStampListener
has the same priority asDoctrineClearEntityManagerWorkerSubscriber
In my installation above,
HandleMonitorStampListener
will be executed first.The problem is that if there are unflushed entities, messenger-monitor-bundle will inadvertently flush them. On the other hand, without messenger-monitor-bundle,
DoctrineClearEntityManagerWorkerSubscriber
will clear these pending entities, and they won't be flushed. So we are getting different behaviors depending on whether messenger-monitor-bundle is installed or not.I propose lowering the priority of
HandleMonitorStampListener
to something like -100, so thatDoctrineClearEntityManagerWorkerSubscriber
always runs earlier to clear the unflushed entities.Also,
ORMStorage
should also callclear()
afterflush()
.The text was updated successfully, but these errors were encountered: