Hi!

I've ran into a problem that NH would not delete a one-to-one part of
a relationship when deleting the other one.

When I delete a course, Account entity stays in the DB and NHibernate
does not even try to delete it. Other associations (one-to-many) are
handled correctly.

The mapping (part where Account is defined) looks as:

<one-to-one cascade="all" class="Bbis.Core.Models.Account, Bbis.Core,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="Account" /
>

How can I persuade NH to delete the associated account as well?

Thanks,
  Miha.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to