I am using 'WhoDidiT' in my model to insert user_id. Its working fine. Now i need to insert a different user_id instead of the logged in user_id. Is there any way to insert the different user_id without modifying 'WhoDidiT'
var $actsAs = array(
'WhoDidIt'=>array(
'created_by_field'=>'created_by',
'modified_by_field'=>'modified_by'
),
);
After you save, you can update that specific field
$this->Model->saveField('created_by',$id);
this will do the trick
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With