> could you please give an example, maybe according to the one
> in the thread i mentioned above, this one:
>

I don't think it's any more complex than:

$this->Post->bindModel(array('hasOne'=>array('TagAssociationA'=>array())));
$this->Post->bindModel(array('hasOne'=>array('TagAssociationB'=>array())));
$constraint['Post.published'] = '< '.date('Y-m-d H:i:s');
$constraint['TagAssociationA.tag_id'] = $tagAId;
$constraint['TagAssociationB.tag_id'] = $tagBId;
$this->Post->findAll($constraint);

hth

Jon

-- 


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to