I think that you will find that judicious use of bindModel and
unbindModel will really help out here.  Do a quick search in google if
you need help on these.

<http://www.google.com/search?client=safari&rls=en&q=bindModel+unbindModel+cakephp&ie=UTF-8&oe=UTF-8>

On 11/10/06, lemp <[EMAIL PROTECTED]> wrote:
>
> I am building a review system with a model like this one:
>
> users <-> reviews <-> items (<-> means HABTM)
>
> Each item also has a link to the user who added it to the DB.
>
> Each item has links to attributes tables (like colors, countries, etc.)
>
> Each user is also related to some other tables.
>
> My problem is that when I get the reviews with a recursive value of 1,
> I get the user and item for each review but I don't get the attributes
> values for the item. If I set the recursive value to 2, I get those
> attributes values, but I also get all relationship from the user, which
> brings back way too much data.
>
>
> >
>


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