Hello grigri,

2008/1/31, grigri <[EMAIL PROTECTED]>:
> 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.
>
> > > Yes, this is managed by Cake itself.
> >
> > > Check:http://tempdocs.cakephp.org/#TOC62105

Yes, I have checked that and as I understand the default value of the field in
the database schema should have NULL.
But I get the modfied field only updated, if I null the field before
saving the data.

I have looked through the sources of model.php and I am not sure, but
I understand from the source, that the field value of modfied has to
be null to get it updated through cake automagically. Is this
intentionally. I thought it would be updated before
(Checking beta 6311 of course and the current version in CVS)

Can anybody verify this ?

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