[Solar-talk] updated not being updated
Jeff Surgeson
solar at 3hex.com
Fri Aug 4 06:29:46 PDT 2006
Is it my imagination or has something changed with regards the updated field
being automaticly updated on a mysql save()
Looking at Solar_Sql_Table save() is a wrapper for insert and update, on
insert updated & created are done ok but on update the updated field is no
longer updated with timestamp.
In the update function it has:
// set the "updated" timestamp
if (empty($data['updated'])) {
$data['updated'] = date('Y-m-d\TH:i:s');
}
If I remove the if statement and force the update all works ok on update.
What am I missing here!
--
Jeff Surgeson
More information about the solar-talk
mailing list