I know that, product_count is the counter_cache, but only for the
subcategories the ones that have a parent_id from the categories, is a
threaded model, and when i select the main categories i want to know the
count of the products in all the subcategories :). That's my dilemma.
Thx.
On Thu,
Yes is related to cake, well all I want to know is if there is a
solution to this in cake.
I have Categories like
Array(
[0] = Array(
[Category] = Array(
[id] = 1,
[parent_id] = null,
[name] =
I have the following model:
categories:
- id,
- parent_id,
- name,
- product_count
So, the model is threaded: exists main categories and subcategories
that's it, but only subcategories contain products so only for
there is counter cache counter_cache property. check manual.
On May 14, 4:41 pm, Bogdan I. Bursuc bogdanbursu...@gmail.com
wrote:
I have the following model:
categories:
- id,
- parent_id,
- name,
- product_count
So,