I had the same problem.  You have to set the default value for the
column to null.

See:
https://trac.cakephp.org/ticket/2595

On Aug 30, 8:56 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> After cake baking I get code like:
>
> function add() {
>                 if(!empty($this->data)) {
>                  if ($this->User->create($this->data) && 
> $this->User->validates()) {
>                         $this->cleanUpFields();
>                         $this->User->create();
>                         if($this->User->save($this->data)) {
> ....
>
> But when I browse in my MySQL I see:
> created: 0000-00-00 00:00
> modified: same
> ...
> Why? In 1.1 - this fields was fill automatic. How to fill this fields
> auto in CakePHP 1.2?
> Help!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to