I have Order Entity,it hasa one-to-many bag OrderServices and one-to-many bag OrderPaymentDocument,if a fill this collections and doing save its saving all ok,but OrderPayment Document hasa IdBag(many-to-many) to OrderServices if i fill this idbug and saving all together Nhibernate give me error, object references an unsaved transient instance - save the transient instance before flushing. Type: Kz.WebFusion.Entities.Business.Orders.Order, Entity: Kz.WebFusion.Entities.Business.Orders.Order,i thing this error is a that he cant save many-to-many because OrderServices in yet saved,i cant save it separately because i need OrderServices to include in OrderPaymentDocument,can you help me save a big entity
|