On 1/25/07, jyrgen <[EMAIL PROTECTED]> wrote: > > hi list, > > > But i ran into heavy trouble, because models are associated > in my design (i have authors and articles basically). > I had errors in my views of the type ("undefined index..."). > For example in a simple article index list of one author, > cake pulls *every* associated data, i.e. author profiles and > so on. This lead to the errors mentioned above. >
You can pass an optional variable called $recursive via your find statements set to -1 to stop your find from pulling in any associated records: http://manual.cakephp.org/chapter/models -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digitial photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---