I assume you can find the posts. From there, extract the categories and
find the users like so
$posts = // find today's posts
$followers = $this->Follower->find('all', array(
'conditions' => array(
'Follower.category_id' => Set::extract('/Post/category_id', $posts)
),
'contain' => array('User')
));
// user emails
$emails = Set::extract('/User/email', $followers);
Seems straightforward enough.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php