I'm having trouble figuring out how to search and group a deep
association.
Authors hasMany Posts
Post belongs to one Category
Validation will ensure that a category is only used by one post
belonging to a particular author. Once a post belongs to a category no
other post by that author can belong to that same category but other
authors' posts will be able to use that category once.
How do I display the authors in groups by the exact combination of
Categories that the author has posts belonging to?
i.e. Author #1 and Author #2 each have 3 posts. For both authors the
three posts that belong to them have the same three categories #1, #,2
and #3. Author #3 has 3 posts but those 3 posts have categories #2,
#3, and #4.
I need to be able to retrieve the authors by the categories their
posts belong to. So if I wanted to find authors that have posts
belonging to categories #1, #2, and #3 it would return authors #1 and
#2 from the example above.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to
cake-php@...
To unsubscribe from this group, send email to
cake-php+unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en-~----------~----~----~----~------~----~------~--~---