I've been thinking about this problem some more, and maybe I need HABTM-associations between the pages and widgets, as well as between the layers and the widgets? Or would that make it unneccesarily complex?
I want to generate an array based on the current page, and then print the layers, and the widgets each layer contains, so maybe there's a much simpler approach. It's just that I can't see how to do this. On 13 apr, 16:18, "gerbenzomp" <[EMAIL PROTECTED]> wrote: > You mean in the model? I've tried that before, but it doesn't change > the error. > > I think there's something wrong with my associations in general, > because I get an array that looks different from what I had hoped for, > and the error stays too. (It goes away when I remove the page->widget > association, which is in a way understandable, because a page contains > no widgets: a page contains layers, which in turn contain widgets. > > It's hard for me to have a clear understanding of how I should set > this up. > > On 13 apr, 13:38, "Mike Griffin" <[EMAIL PROTECTED]> wrote: > > > On 4/13/07, gerbenzomp <[EMAIL PROTECTED]> wrote: > > > > But I think this isn't the right approach, because I get the error: > > > SQL Error in model Page: 1052: Column 'id' in order clause is > > > ambiguous > > > You need to use the model name in front of the id as well. > > Something like Page.id or Widget.id, depending on which one you want. > > > Mike. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---