Thursday, August 30, 2007

Fields: created, modified in CakePHP 1.2

I had a troubles with automatic omplete this fields, when my script made $this->Model->save

After 2 hours of brain storm, I come back to and found answer on my question - Ticket #2595 ;-)

But we can solve this problem ;-)

All we need to do is convert default in MySQL:

0000-00-00 00:00 - is wrong! And doesn't working!!!


Null - default. It's working fine!

I'm change my table defaults parameters of this fields, and ->save method working fine ;-)

Wow! ;-)


Post a Comment

Subscribe to Post Comments [Atom]

<< Home