Skip to content

Commit 2eb6f1e

Browse files
committed
Support of lazy="extra" on air
SVN: trunk@3717
1 parent f73169c commit 2eb6f1e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: src/NHibernate.Test/Extralazy/ExtraLazyFixture.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected override string CacheConcurrencyStrategy
2222
get { return null; }
2323
}
2424

25-
[Test, Ignore("Not supported yet") ]
25+
[Test]
2626
public void OrphanDelete()
2727
{
2828
ISession s = OpenSession();

Diff for: src/NHibernate/Cfg/XmlHbmBinding/CollectionBinder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ private void BindCollection(XmlNode node, Mapping.Collection model, string class
225225

226226
//ORPHAN DELETE (used for programmer error detection)
227227
XmlAttribute cascadeAtt = node.Attributes["cascade"];
228-
if (cascadeAtt != null && cascadeAtt.Value.Equals("all-delete-orphan"))
228+
if (cascadeAtt != null && cascadeAtt.Value.IndexOf("delete-orphan") >= 0)
229229
model.HasOrphanDelete = true;
230230

231231
bool? isGeneric = null;

Diff for: src/NHibernate/Engine/Cascade.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ private void DeleteOrphans(string entityName, IPersistentCollection pc)
262262
}
263263
else
264264
{
265-
orphans = CollectionHelper.EmptyCollection; // TODO NH: H3.2 Different pc.GetQueuedOrphans(entityName);
265+
orphans = pc.GetQueuedOrphans(entityName);
266266
}
267267

268268
foreach (object orphan in orphans)

0 commit comments

Comments
 (0)