Ejemplo n.º 1
0
 public function getDbConnection()
 {
     if ($this->shardUserId) {
         self::$db = DbManager::getUserShard($this->shardUserId, $this->dbComponentId);
     } elseif ($this->dbComponentId) {
         self::$db = DbManager::getDb($this->dbComponentId);
     }
     return parent::getDbConnection();
 }
Ejemplo n.º 2
0
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }