The 1st param is for a string or array of field names. And the 2nd takes an ID, which is pretty much the last word on conditions--there can only be one. As for the contain, I suppose you'd need to unbind whatever you don't want.
The other option is to just use find() On Mon, Apr 27, 2009 at 11:03 AM, Dave Maharaj :: WidePixels.com <[email protected]> wrote: > Wondering if there is a way to use the same conditions, fields, contain in a > read()? So you can limit the tables returnng data? > > if (empty($this->data)) { > $this->data = $this->User->read(null, $id); > } > > Dave > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
