I have an Activity model and a Theme model. Activities are associated
to themes by theme_id. Some themes currently don't have any activities
yet  i'm wanting to get a list of only themes for which activities
exist.

I thought $this->Activity->Theme->find('all') would do this, but it
returns all themes, not just the themes to which activities are
attached. What's the proper way to accomplish this? I'm doing this in
the Activities controller, so I already have the Themes model through
it's association to Activities already.

Thanks!

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

Reply via email to