Sorry, I didn't explain my specific situation. In my case, all I wanted to do was check to see which items in my table had children; that was all I wanted to know for my specific case. counterCache was all I needed, but when I couldn't get it to work (due to my own mistakes) I turned to counterQuery. TreeBehavior was seemingly the only last option I had, but really didn't want to use (as it was huge overkill). I ended up getting counterCache to work before looking too deeply in to TreeBehavior, but I am curious to know if counterQuery is implemented in Cake 1.2 RC3.
Thanks for the link showing how to do more with counter cache. I like to learn as much as I can in regards to Cake. On Oct 27, 5:15 pm, AD7six <[EMAIL PROTECTED]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
