Skip to content

Commit d187b4f

Browse files
desunithazzik
authored andcommitted
- fixing the issue with collection was not processed by flush (see Hibernate JIR HHH-2763 for details)
1 parent 7afda71 commit d187b4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/NHibernate/Event/Default/AbstractFlushingEventListener.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ protected virtual void PerformExecutions(IEventSource session)
235235
try
236236
{
237237
session.ConnectionManager.FlushBeginning();
238+
session.PersistenceContext.Flushing = true;
238239
// we need to lock the collection caches before
239240
// executing entity inserts/updates in order to
240241
// account for bidi associations
@@ -251,6 +252,7 @@ protected virtual void PerformExecutions(IEventSource session)
251252
}
252253
finally
253254
{
255+
session.PersistenceContext.Flushing = false;
254256
session.ConnectionManager.FlushEnding();
255257
}
256258
}

0 commit comments

Comments
 (0)