/** * If countercache is enabled, the parent id will be updated with the correct counts. * * @param AppModel $Model Model instance * @return boolean true to continue, false to abort the delete * @access public */ public function afterDelete($Model) { if ($this->counterCacheEnabled($Model) && $this->__parentId) { $this->updateTreeCounterCache($Model, $this->__parentId); } return parent::afterDelete($Model); }