As the name implies:
* created will be updated *ONLY* when the record has been created (one time)
* modified will be updated whenever record updates (which is: on creation
and on update)
Control it on what level? If you need further control (such as when they
should be updated or whatever) you can create your own fields and play with
beforeSave() and other callback methods to achieve what you need.
-MI
---------------------------------------------------------------------------
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de phpjoy
Enviado el: Viernes, 22 de Diciembre de 2006 08:54 p.m.
Para: Cake PHP
Asunto: Re: Updating a date field after form submission
if i have a created field and a modified field, will both of them be
updated everytime?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---