source/Application/Controller/Admin/ArticleMain.php
protected function _resetCategoriesCounter($sArticleId)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sQ = "select oxcatnid from oxobject2category where oxobjectid = " . $oDb->quote($sArticleId);
        $oRs = $oDb->select($sQ);
        if ($oRs !== false && $oRs->count() > 0) {
            while (!$oRs->EOF) {
                $this->resetCounter("catArticle", $oRs->fields[0]);
                $oRs->fetchRow();
            }
        }
    }
protected function _resetCategoriesCounter($sArticleId)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sQ = "select oxcatnid from oxobject2category where oxobjectid = " . $oDb->quote($sArticleId);
        $oRs = $oDb->select($sQ);
        if ($oRs !== false && $oRs->count() > 0) {
            while (!$oRs->EOF) {
                $this->resetCounter("catArticle", $oRs->fields[0]);
                $oRs->fetchRow();
            }
        }
    }
protected function _resetCategoriesCounter ( $ sArticleId ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sQ = "select oxcatnid from oxobject2category where oxobjectid = " . $ oDb -> quote ( $ sArticleId ) ; $ oRs = $ oDb -> select ( $ sQ ) ; if ( $ oRs !== false && $ oRs -> count ( ) > 0 ) { while ( ! $ oRs -> EOF ) { $ this -> resetCounter ( "catArticle" , $ oRs -> fields [ 0 ] ) ; $ oRs -> fetchRow ( ) ; } } }
Resets article categories counters

@param string $sArticleId Article id
Resets article categories counters