Alfred
Questions Asked
0 answers
counterCache and Tree behavior
I have Post and Category models. Post belongs to Category, and Category has many Posts. Category...
Answers
There no answers yet.
Comments
- Member since:
- November 30th, 2009
- Last active:
- 2010-01-18 19:58:14
- Questions asked:
- 1
- Answers:
- 0
- Correct Answers:
- 0
- Comments:
- 1
counterCache and Tree behavior
===== Found it! ===== In Post model: {{{ function updateCounterCache($key = array(), $created = false) { #parent::updateCounterCache($keys, $created); $category =...