I just dealt with this issue and the there is a subtle thing to keep in mind: you have to let the parent entity know that the child has been added to the list, just setting the parent id on the child is not enough because NHibernate won't know what index to assign.
parent.Children.Add(new Thingy()); I used a session.Load to get the parent class (only when I know for sure that it should exist). -- 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.
