Hello. I'm starting a simple application using CakePHP 1.2 and it
greatly improve my experience over 1.1, congratulations!
But (of course, there is always a "but" =), I'm having some troubles
with a "created" and "modified" fields that I expect CakePHP to fill
automatically. Using "var $scaffold;" in my controller, everything
works as expected, this query is executed:
INSERT INTO `categories` (`name`, `modified`, `created`) VALUES
('Lola', '2009-01-16 18:17:06', '2009-01-16 18:17:06')
But then, I baked a controller and view using cake bake script and
now, when adding a new object, I get this query:
INSERT INTO `categories` (`created`, `modified`, `name`) VALUES
('CURRENT_TIMESTAMP', '0000-00-00 00:00:00', 'Test')
And, of course, both timestamps get set to '0000-00-00 00:00:00'.
Should I report a bug? Is there anything I could be doing wrong?
Thanks!
PS: I'm using 1.2.0.7962 final.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---