I could be mistaken, but I've not seen a 'catch all' argument for Containable.
If you find that you always do the same 'contain' for User... i.e. 'contain'=>array('Profile', 'Address', 'Images', 'Webpages'=>array('WebpageType')); you could make the above array as a var $defaultContain in the User model (or controller), then: $this->User->find('all', array('contain'=>$this->User- >defaultContain)); On Sep 23, 2:45 pm, Brenton B <[EMAIL PROTECTED]> wrote: > So I've got a User .... a User has a Profile, Addresses, Images, > Webpages. > > When I do a simple `find()`, by default it'll get the first level. > However, Webpages also has WebpageType. > > So my options are to either bump up the recursivity by 1, which will > get the Addresses, but because of the increase recursiveness, it'll > get the User again. > > Or use Containable; except by it's nature, I have to specify each of > Profile, Addresses, Images, Webpages.WebpageType ... so if I add > something to it, I'll have to go through and add it to each call as > well ... Bindable had a 'catch-all' with '*', which doesn't work with > Containable, and no documentation to the mention of it. > > So I guess my question, has anyone thought up a sweet work around?? > > I'm really digging Cake, just taking me some time to get used to it. > > Cheers > > On Sep 23, 12:28 pm, teknoid <[EMAIL PROTECTED]> wrote: > > > You should be more specific as to what you are tying to do... > > > "get couple of things" doesn't really explain the issue. > > > On Sep 23, 2:12 pm, Brenton B <[EMAIL PROTECTED]> wrote: > > > > This isn't possible? Or just so obvious? > > > > On Sep 22, 8:31 pm, Brenton B <[EMAIL PROTECTED]> wrote: > > > > > I'm using the "Containable" behavior ... > > > > I want to get a couple extra specific things off one of the > > > > associations, but still want to get all the others. > > > > Instead of having to relist everything, is there anyway I can use '*' > > > > like the Bindable behavior had?? (since it's not deprecated) > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---