Countercache for children


#1

I am looking at the countercache, and was wondering if there is easy way to use it with parents and children?


#2

https://book.cakephp.org/3.0/en/orm/behaviors/counter-cache.html#advanced-usage

The CounterCache behavior works for belongsTo associations only.

you can probably (because i havent tried) set it with parents as Children belongsTo Parent