To complete my request, I notice that if I use the afterFind method in a 
Behavior class, I get nothing. However, if I call afterFind in the model 
class, I get the right data...

So, is there a difference between the two afterFind ?



Marc MENDEZ a écrit :
> Hi,
>
> I'm working on models and behaviors.
> I'm developing a behaviour which will compare the "modified" field value 
> in the database to its value I got when the record was fetched.
> On the "beforeSave" method, I thought the "modified" column was not yet 
> changed to the current time, but I was wrong.
> I tried to get the original value in the afterFind method, but the data 
> property is empty.
>
> How can I do ?
>
> Thanks for your help
>
>
>
> >
>
>   




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