If you find yourself doing the same conditions/contain key over and
over define some default in the model, i.e.
var $containment = array(...);
You can then use it like $this->SomeModel->find('all', array
('contain'=>$this->SomeModel->containment));
On Nov 24, 2:58 pm, thatsgreat2345 <[EMAIL PROTECTED]> wrote:
> I was curious if there was such a thing as notcontains, as sometimes I
> just want to exclude a few fields, and sometimes the same fields such
> as created / modified across a few tables. So it is some what of a
> hassle to list out all the stuff for the contains parameter rather
> then making something such as notcontains, or exlcude and have it
> ignore those fields.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---