Skip to content

Commit 488618b

Browse files
committed
Obsolete PostInitialize with single argument
1 parent 8e337ea commit 488618b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/NHibernate/Engine/CollectionEntry.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ public void PreFlush(IPersistentCollection collection)
298298
/// has been initialized.
299299
/// </summary>
300300
/// <param name="collection">The initialized <see cref="AbstractPersistentCollection"/> that this Entry is for.</param>
301+
//Since v5.1
302+
[Obsolete("Please use PostInitialize(collection, persistenceContext) instead.")]
301303
public void PostInitialize(IPersistentCollection collection)
302304
{
303305
snapshot = LoadedPersister.IsMutable ? collection.GetSnapshot(LoadedPersister) : null;
@@ -312,7 +314,10 @@ public void PostInitialize(IPersistentCollection collection)
312314
/// <param name="persistenceContext"></param>
313315
public void PostInitialize(IPersistentCollection collection, IPersistenceContext persistenceContext)
314316
{
317+
#pragma warning disable 618
318+
//6.0 TODO: Inline PostInitialize here.
315319
PostInitialize(collection);
320+
#pragma warning restore 618
316321
if (LoadedPersister.GetBatchSize() > 1)
317322
{
318323
persistenceContext.BatchFetchQueue.RemoveBatchLoadableCollection(this);

0 commit comments

Comments
 (0)