Hi,

I've built an shopping cart using ORM and currently the user has a
basket which is persisted, when the user starts the checkout process,
then an Order object is created and the Basket is associated to the
Order. This all works fine.

The problem I have is that when the order completes, I clear the
Basket (which maps to the Baskets table) when the order completes and
store the ordered items in a OrderLine object (which maps to the
Orderlines table). I do this because I want to keep the Basket table
nice and light and not concerned with historic data (passed orders).
The trouble with this is that I then have a 1 to 1 relationship
between an Order and a Basket (until the order completes) and also a 1
to 1 relationship to the OrderLine object (for completed orders).

Is there a more elegant solution to this that I'm missing?

Thanks.

- John

-- 
You received this message because you are subscribed to the Google Groups 
"CFCDev" 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/cfcdev?hl=en.

Reply via email to