Brilliant! This actually worked out much better for me.

Thanks

Brad
On Feb 15, 4:01 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> Don't use HABTM, make a full model for the table, then change the
> associations to hasMany/belongsTo.
>
> HTH,
> - Dardo Sordi.
>
> On Fri, Feb 15, 2008 at 12:26 AM, Snadly <[EMAIL PROTECTED]> wrote:
>
> >  For this question, lets assume I have 3 models: A, B, and C.
>
> >  I have a HABTM relationship setup between two models, A and B.
>
> >  The many to many table looks like this:
> >  id,
> >  a.id,
> >  b.id,
> >  c.id <--- This can be NULL or it can be a record out of model C.
>
> >  What I want to do is to have the Model C record loaded if the value is
> >  not NULL. I have tried changing the level of recursion, but the
> >  problem is that the HABTM relationship doesn't know that c.id is a
> >  model that can be loaded and I don't know how to tell it such.
>
> >  Any advice?
>
> >  Thanks.

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

Reply via email to