I have a record with a timestamp field, which its default is defined as current_timestamp in the mySql db. I use the code:
$this->Ad->Click->create();
$this->Ad->Click->set('ad_id', $id);
$this->Ad->Click->save($this->data);
after the record is saved, the timestamp field stays 0000-00-00 00:00:00. why is that?
of course, i understand that i can use php time functions to set the field value, or mySQL functions, in a query.. but i prefer the 'satandard way'.