On Fri, Feb 27, 2009 at 11:59 AM, Toutankharton <[email protected]> wrote:
>
> I'm integrating a database from a client, which field `date_maj`
> ("maj" is french shortcut for up-to-date) is what cake wants
> developers to call `updated` or `modified`.
>
> Is there any way for me to tell cake to user that field over the
> default one ?

Hi Thomas!  I've asked myself this same question weeks ago.
AFAIK, in the current CakePHP version there is no easy way
to do this (I've expected something analogous to put another
attribute like the $primaryKey or $displayField, maybe
$createdField or something like that).

Anyway, you could handle this by yourself in the beforeSave
method in your AppModel.

Best regards.

--
MARCELO DE F. ANDRADE (aka "eleKtron")
Belem, PA, Amazonia, Brazil
Linux User #221105

[...@parĂ¡ ~]# links http://pa.slackwarebrasil.org/

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