> This works great if I don't need to base my query on anything in the
> audience such as only select stories that have a particular audience
> associated with it.
>
> How would I go about returning only stories that have a particular
> audience. That is where there is a match in the audiences_stories
> table?
$this->audience->findAll('Audiences.field = something');
gives you all stories related to the selected audiences.
?
do you mean something like https://trac.cakephp.org/ticket/633
=> $this->audience->findAll('Audiences.field = something AND story.field =
xyz');
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---