Hi,
I am really a newbie to Yii and I am doing a small application. In that application I have some tables. Like product and discount
The table is like this
=================
products
=================
+ id +
+ product_name +
+ cost_price +
+ selling_price+
+ created_by +
+ updated_by +
++++++++++++++++++
=================
discount
=================
+ id +
+ discount_type +
+ created_by +
+ updated_by +
++++++++++++++++++
Now you can see in those tables I am always keeping created_by and updated_by. I am keeping them to record the changes from whom has created and made updated. So can someone kindly tell me how to get
created_by and updated_by id
and the name? Any help and suggestions will bereally appreciable. Thanks