Hi,
Given some tables/models: users, user_addresses, basket, products.
Need to build a model that will allow to manage orders with data stored in tables above.
None of the data could be changed or added trough that model, just change of 2 fields in basket table (payed_ammount, status).
e.g. Orders: OrderNr (from basket.orderid), TotalSumm (from sum(products.price) in basket), …
So i’m trying to do that with a CFormModel, but not sure if it is right.
What do i need to have in my model (the standards ones)?
Also for class attributes i would like to use setters and getters but using __get requires CController or CActiveRecord.