you also need to set var $recursive = 2; in the two primary models,
and it should be noted that this will not work with scaffolding

On 11/29/06, Jon Bennett <[EMAIL PROTECTED]> wrote:
>
> > > Before replying with possibly irrelavent info, what is it that a HABTM
> > > doesn't do for you, and what is it you want to achieve?
> >
> > nothing, just sitting here and can't remember what the trick was
>
> I think:
>
> • vanilla HABTM association
> ModelOne hasAndBelongsToMany ModelTwo
> ModelTwo hasAndBelongsToMany ModelOne
>
> • simulated HABTM assocition
>
> To simulate a HABTM association, perhaps to allow for more data in the
> join table, you need to create a model for the join table, in this
> instance, model_ones_model_twos, and associate that instead like so:
>
> ModelOne hasMany ModelOneModelTwo
> ModelTwo hasMany ModelOneModelTwo
> ModelOneModelTwo belongsTo ModelOne
> ModelOneModelTwo belongsTo ModelTwo
>
> hth
>
> jon
>
> --
>
>
> jon bennett
> t: +44 (0) 1225 341 039 w: http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett
>
> >
>


-- 
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

--~--~---------~--~----~------------~-------~--~----~
 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