Friday, August 28, 2009

Re: Model->find LEFT JOIN issue

Well, I can't replicate the error, but it was only selecting data from one table which was surely the case.

Thank you for reminding about counterCache, I used to love it!

Cheers,
Faifas


On Fri, Aug 28, 2009 at 19:53, WebbedIT <paul@webbedit.co.uk> wrote:

What SQL and error is it generating?  Why not run the find on the
CarTemplateCategory model with CarTemplate.id as a condition or better
still use counterCache automagic to save yourself time and resources.

http://book.cakephp.org/view/816/counterCache-Cache-your-count



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: