My latest problem: I can get data from my HABTM with:
$this->set('x', $this->thing->findall())

but can't when using a more specific custom model:
$conditions = "(This.that_id = '1') AND (That.active = 'y')";
$fields = array('This.name', 'That.name');
return $this->findAll($conditions, $fields, null, null, null, 0);

with "this" and "that" being joined by habtm.

When the sql that is produced the first method is fine, but with the
second method it doesn't join the habtm stuff.


How do I do this, I'm building a search feature and want to search by
with basic info from  HABTM relationships


Thanks in advance

TWIOF


--~--~---------~--~----~------------~-------~--~----~
 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to