On 7/3/07, Mech7 <[EMAIL PROTECTED]> wrote: > > Thanks this seems to do the job.. when i put it in my controller :D > but what does the recursive var stand for? >
Think of it like this... If your main model that is being indexed has children (other models) you could well want fields associated with those children (for example, perhaps to to resolve an employee number into a readable name) The recursion var controls how deep this matching will go. To continue the example, some employees might have one or more further objects (models) associated with them as individuals. For your original parent object right at the top, it is probably unlikely you need this level of detail so restricting the recursive var should reduce the DB load & execution speed. See the definition of find() at http://manual.cakephp.org/chapter/models - it's all in there :-) - howard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
