Thanks a lot, mate! I'll try it out. On Mar 9, 7:54 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > > > My question is, is there a way to prevent that the same data is > > > fetched (and added to the results array) several times, without > > > lowering the recursion level? > > > check outhttp://bakery.cakephp.org/articles/view/183(or one of the > > other variants). > > > What I would do is: > > > // set recursive level > > $this->Group->recursive = 1; > > // unbind all associations except the Student model > > $this->Group->unbindAll(array('hasMany'=>array('Student'))); > > // unbind all assocations from the Student model to avoid > > $this->Group->Student->unbindAll(); > > // grab records > > $groups = $this->Group->findAll(); > > I meant recursive = 2 sorry! > > hth > > jon > > -- > > jon bennett > t: +44 (0) 1225 341 039 w:http://www.jben.net/ > iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
