Re: [nhusers] Re: Help tracking down error: deleted object would be re-saved by cascade

2010-02-09 Thread Robert Rudduck
Yep, you can create event handlers to do anything you want. You will just have to cast the entity (passed as object) to your type and then do with it what you want. Be careful what you do in the listener though, there can be some strange side effects. This link should help you out:

[nhusers] Re: Help tracking down error: deleted object would be re-saved by cascade

2010-02-08 Thread acl123
Well I don't think it should be deleted in the first place! Perhaps I could set up a DeletedEventListener that logged the parent object of the deleted entity, but I can't work out how to get the parent of an entity during an event listener. Do you know if this is possible? On Feb 9, 4:00 am,