On Wed, Apr 16, 2008 at 7:24 PM, Joshua McFarren <[EMAIL PROTECTED]> wrote:
> if (! $created) {
> $project_task_id = $this->getLastInsertId();
> // @todo - why is the above not returning anything?
> $dependentTasks = $this->findAll(
> "ProjectTask.depends_on ='$project_task_id'",
> NULL,
> NULL
> );
> foreach ($dependentTasks as $task) $this->save($task);
> }
> parent::afterSave($created);
> }
> }
Perhaps I'm just jetlagged, but your if statement seems to only be
triggered if the record has NOT been saved, which is kind of weird.
Maybe I'm misunderstanding what's happening here.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---