I'd store a counter cache on RatingEvent, to store the number of Ratings that event has. http://book.cakephp.org/view/1033/counterCache-Cache-your-count
Then you can just query where ratings_count = 0 Cheers, Graham / Predominant On Sun, Jul 18, 2010 at 9:34 PM, DragonFlyEye <[email protected]> wrote: > If I have a relationship where RatingEvent hasMany Ratings, how would > I go about retrieving all records where there are no Ratings > associated with a RatingEvent? > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" 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 > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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
