Hi, I'm paste the very simple example in the bin (first time, I hope it will work...)
Before posting, I tested the code. Ask me more if needed. francky06l a écrit : > Strange since the afterFind in behavior should be called. Maybe you > have a problem in declaration or syntax ... Can you paste some code in > the bin ? > By the way I have implemented a similar behavior that stores the > "delta" between modifications in a table, for an "historization" and > eventual rollback. > > On Jun 23, 2:28 pm, Marc MENDEZ <[EMAIL PROTECTED]> wrote: > >> 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 -~----------~----~----~----~------~----~------~--~---
