On Feb 9, 2008 6:31 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> if you add created and modified columns to your table, cake will
> automagically fill them in for you.

But, when I submit a changed record, I want it to do something like
the following:

save($orig, $new) {
  $hx = json_decode($orig['hx'], 1);
  $key = time();
  unset($orig['hx']);
  $hx[$key] = $orig;
  $new['hx'] = json_encode($hx);
  Model::save($new);
}

However, I don't know the right way to call the parent class that will
recognize the model described.

-- 
Ben Wilson
"Words are the only thing which will last forever" Churchill

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to