It is quite a mystery, because if you look at the Model's save()
function, it clearly should be making a call to beforeSave():

http://api.cakephp.org/1.2/libs_2model_2model_8php-source.html#l01106

Have you tried deleting all the files that have accumulated in my app/
tmp/cache directory.  Sometimes when I have had these kinds of strange
problems it was because of an outdated cached model file.

-Aran

On Apr 17, 5:32 pm, Joshua McFarren <[EMAIL PROTECTED]> wrote:
> Hi Aran,
>
> Thanks for the advice. Unfortunately I tried that and it doesn't make
> a difference. The syntax i tried is:
>
> $this->ProjectTasks->create();
> $this->ProjectTasks->save($task);
>
> In either case the save method does update the row in the DB but the
> callbacks don't happen.
>
> Any other ideas?
>
> - Joshua
>
> On Apr 17, 7:46 pm, aranworld <[EMAIL PROTECTED]> wrote:
>
> > Try putting:
>
> > $this->ProjectTasks->create();
>
> > in each loop of the foreach in Schedule::afterSave()
>
> > When you call save() multiple times on the same model, I have found
> > that I run into problems if I don't call create() in between each call
> > to save().
--~--~---------~--~----~------------~-------~--~----~
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