Pimcore\Cache\Backend\MysqlTable::getDb PHP Метод

getDb() защищенный Метод

protected getDb ( ) : Zend_Db_Adapter_Abstract
Результат Zend_Db_Adapter_Abstract
    protected function getDb()
    {
        if (!$this->db) {
            // we're using a new mysql connection here to avoid problems with active (nested) transactions
            Logger::debug("Initialize dedicated MySQL connection for the cache adapter");
            $this->db = Db::getConnection();
        }
        return $this->db;
    }