protected function _updateOxTime($oxId)
    {
        $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $objectToCategoryView = $this->_getViewName('oxobject2category');
        $oxId = $database->quote($oxId);
        $queryToEmbed = $this->formQueryToEmbedForUpdatingTime();
        // updating oxtime values
        $query = "update oxobject2category set oxtime = 0 where oxobjectid = {$oxId} {$queryToEmbed} and oxid = (
                    select oxid from (
                        select oxid from {$objectToCategoryView} where oxobjectid = {$oxId} {$queryToEmbed}
                        order by oxtime limit 1
                    ) as _tmp
                )";
        $database->execute($query);
    }