I don't know if it realy is a bug, but when I do this sequence of
operations:

$this->MyModel->findById($id);
$this->MyModel->create();
$this->MyModel->save($this->data);

the "created" column is filled with NULL!

Is it wrong to do those operations like that? (I realy dont think so)

If I save it back the returned data from find before the function
create(), even with no data changes, the "created" is filled OK.
Like this:

$data = $this->MyModel->findById($id);
$this->MyModel->save($data);
$this->MyModel->create();
$this->MyModel->save($this->data);

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to