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 group.google.com/cake-php 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!!!
But
Null - default. It's working fine!
I'm change my table defaults parameters of this fields, and ->save method working fine ;-)
Wow! ;-)
After 2 hours of brain storm, I come back to group.google.com/cake-php 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!!!
But
Null - default. It's working fine!
I'm change my table defaults parameters of this fields, and ->save method working fine ;-)
Wow! ;-)
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home