right i'm getting somewhere, by reffering to the habtm relationship directly* in my model function i get 2 sql queries generated. ONe for the habtm data one for the related model.
*return $this->nameOfModel->findAll($conditions, $fields, $order, $limit, null, 1) but this doesn't offer enough controll over the data, what if i want to search data with multipl habtms? I'm sure i'm not explaining this correctly. Would i be better off witht the custom queries? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---