The fields 'modified', 'created' and 'updated' are managed internally
within Model::save().

It doesn't matter where you call it from, if you call Model::save()
then those fields will "work" automagically.

Note that calling Model::updateAll() will not update any fields other
than the ones you specify.

On Jan 31, 6:30 am, "Siegfried Hirsch" <[EMAIL PROTECTED]>
wrote:
> 2008/1/31, manish <[EMAIL PROTECTED]>:
>
> > Yes, this is managed by Cake itself.
>
> > Check:http://tempdocs.cakephp.org/#TOC62105
>
> What about cake Shells? If I use $model->save() in a Shell, do they
> created and modified
> fields also get updated ?
> I have just the problem and it looks like they are not updated.
>
> Any ideas ?
> Siegfried
--~--~---------~--~----~------------~-------~--~----~
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