I have a shopping cart object, it hasmany shoppingcartitems. pretty
simple.

On the cart object I have RemoveItem .. it looks like this:

Items.Remove(foundItem);

Then I save the cart (ActiveRecordMediator) hoping the shopping cart
item will be affected an no beans.

here's the relevant mapping(s):

[BelongsTo("ShoppingCartId", Type = typeof(ShoppingCart), NotNull =
true, Cascade = CascadeEnum.All), ValidateNonEmpty]

[HasMany(typeof(ShoppingCartItem), ColumnKey = "ShoppingCartId", Lazy
= true, Cascade = ManyRelationCascadeEnum.All)]

Thanks for any/all help. I'm beating my head against the wall on this
one.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to