On Oct 27, 8:37 pm, BrendonKoz <[EMAIL PROTECTED]> wrote:
> OK - CounterCache does work on self-joined tables (I had declared my
> association key for counterCache in the wrong relation). I'm still
> curious about counterQuery, however.
>
> CounterCache is actually the best solution for my current task at
> hand, but I may like to use counterQuery at some point without the
> extra overhead of using a Tree or custom behavior.
If you are using the tree behavior, you really shouldn't need a self
join - I don't understand you're apparent choice between using the
tree behavior and using counterQuery/cache, they are in no way
equivalent or overlap.
Here's an example of how to use counter cache to do more than it does
by default:
http://bin.cakephp.org/view/156582655
hth
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---