Issues
- 'NHibernate.AssertionFailure: no collection snapshot for orphan delete' when saving an entity with an empty collection with delete-orphan cascadeNH-1419Resolved issue: NH-1419
- Paging with multiple orders fail in MSSQL2005NH-1413Resolved issue: NH-1413
- Allow custom accessors to define if the ReflectionOptimizer can be used.NH-1412Resolved issue: NH-1412
- CriteriaTransformer don't clone a DetachedCriteria with sub DetachedCriteriaNH-1408Resolved issue: NH-1408
- Actualize documentation of <any>NH-1407Resolved issue: NH-1407
- IQuery.SetTimeout work incorrect for ExecuteUpdateNH-1406Resolved issue: NH-1406
- Support <any> with meta-type="class"NH-1403Resolved issue: NH-1403Fabio Maulo
- Database constraint names and hash collisionsNH-1399Resolved issue: NH-1399Fabio Maulo
- Ability to use "order by projection"NH-1394Resolved issue: NH-1394
- Ability to use Aggregate Projections on ProjectionsNH-1393Resolved issue: NH-1393
- Union subclass support for PostgreSQLNH-1390Resolved issue: NH-1390
- Map does not delete keys if value of the key is nullNH-1388Resolved issue: NH-1388
- Include NHibernate.Tests in binary packagesNH-1387Resolved issue: NH-1387
- Add support for keyed retrieval of MultiCriteria resultsNH-1354Resolved issue: NH-1354
'NHibernate.AssertionFailure: no collection snapshot for orphan delete' when saving an entity with an empty collection with delete-orphan cascade
Description
Environment
Attachments
Details
Details
Assignee
Reporter
Components
Affects versions
Priority
Who's Looking?
Activity
Fabio MauloJuly 31, 2008 at 9:01 PM
Ok... so the issue can be closed here.
Here mean NH issues....
Like you can see this JIRA is for NH and NH.Contrib projects; go to home page and you can find NHMA project to submit the JIRA (remember to write a reference to "NH-1419")
Brandon KobelJuly 31, 2008 at 3:33 PM
Fabio Maulo,
You are right, when I used the xml based mappings that you submitted, everything works perfectly, so it appears that the issue is with the NHibernate.Mapping.Attributes assembly? I noticed that the NHibernate.Tests project didn't have a reference added to NHibernate.Mapping.Attributes assembly, and I assume this is because of the recent split between NHibernateContrib and NHibernate.Core. Is there an appropriate place for me to recreate the issue using the attribute based mappings?
Thanks for all of your help so far, I sincerely appreciate it.
Fabio MauloJuly 31, 2008 at 9:02 AM
If you want see the test without download NH sources take a look here
http://nhibernate.svn.sourceforge.net/viewvc/nhibernate/branches/2.0.x/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1419/
Fabio MauloJuly 31, 2008 at 8:59 AM
Hi Brandon.
I try a test in 2.0.0 branch and it appear like "Not an issue".
Note that I write the mapping xml based on the attributes you write using NHMA.
I'm going to commit the test.
Please check it and if you find something else we can reopen this issue.
Brandon KobelJuly 29, 2008 at 12:43 PM
Based upon your comment, I changed the cascade style to no longer use the 'all' cascade style to see if it was the 'refresh' cascade function that was causing the error. Even when I changed the cascade style to 'save-update,delete-orphan' I get the same error. If I use the 'all' cascade mode, and exclude 'delete-orphan' I don't get the error anymore.
When attempting to save an entity with an association to an empty collection with a cascade style of delete-orphan, I'm getting a 'NHibernate.AssertionFailure: no collection snapshot for orphan delete' error.