Re: Containable: all + couple extras.

2008-09-23 Thread Brenton B
That's not a bad idea. Would just really like to see something that adds onto it ... I'll probably just code something up. Thanks anyway. On Sep 23, 1:25 pm, teknoid <[EMAIL PROTECTED]> wrote: > I could be mistaken, but I've not seen a 'catch all' argument for > Containable. > > If you find that

Re: Containable: all + couple extras.

2008-09-23 Thread teknoid
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

Re: Containable: all + couple extras.

2008-09-23 Thread Brenton B
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 increas

Re: Containable: all + couple extras.

2008-09-23 Thread teknoid
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

Re: Containable: all + couple extras.

2008-09-23 Thread Brenton B
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

Containable: all + couple extras.

2008-09-22 Thread Brenton B
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) --~--~