You should create some unit tests proving your findings, and submit it
as a bug in trac. If it is a genuine bug it will get fixed fairly
quickly.

Cheers,
Adam

On Oct 13, 11:00 pm, acoustic_overdrive <[EMAIL PROTECTED]>
wrote:
> Sorry I know it's rude to bump my topic but I thought it might have
> got lost over the weekend when everyone was partying instead of
> thinking about CakePHP...
>
> On Oct 11, 12:06 am, acoustic_overdrive <[EMAIL PROTECTED]>
> wrote:
>
> > I'm trying to use the TreeBehaviour at the same time as other
> > behaviours and I've noticed that after the TreeBehaviour gets hold of
> > the data array during a save operation, the "id" field in the Data is
> > missing, which is causing my other behaviour a bit of a problem.
>
> > I can see from the TreeBehaviour's source that it unsets this value on
> > line 148 in its beforeSave function:
>
> > unset($model->data[$model->alias][$model->primaryKey]);
>
> > I'm working around it by placing 'Tree' last in my actsAs array, which
> > means my other Behaviour gets to the data first, but any afterSave
> > callbacks will be too late to benefit.
>
> > Is this intended behaviour? Am I missing something important?
>
> > Thanks!
>
> > I'm using 1.2 RC3 by the way
--~--~---------~--~----~------------~-------~--~----~
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