Actually, I'm using Jean-Claude's MyTranslateBehavior, which already sub-classes Translate.
En tous cas, I moved my logic into the controller. I really think it's be better in the model but this is simpler. Thanks for your reply. On Tue, Apr 15, 2008 at 9:54 AM, Joel <[EMAIL PROTECTED]> wrote: > > I don't think there's an easy solution; ModelBehavior::beforeSave() is > called before Model::beforeSave() (http://api.cakephp.org/1.2/ > libs_2model_2model_8php-source.html#l01106), so you can't simply put > your logic in the callback of the later, which might not even be > desirable for your situation. > > I think the best course of action would be to subclass the translate > behavior, implement your logic in the beforeSave() callback, and then > call the parent::beforeSave() method. > > -Joel. > > > > On Apr 14, 10:57 pm, "b logica" <[EMAIL PROTECTED]> wrote: > > How can I use beforeSave() in a model that actsAs Translate? Is that > > even possible? Does using a behavior remove that possibility? > > > > Is any of this documented somewhere? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---