コード例 #1
0
ファイル: BaseModel.php プロジェクト: pkdevboxy/df-core
 /**
  * Gets the TableSchema for this model.
  *
  * @return TableSchema
  */
 public function getTableSchema()
 {
     if (empty($this->adaptedConnection)) {
         $connection = $this->getConnection();
         $this->adaptedConnection = ConnectionAdapter::getLegacyConnection($connection);
         $this->cachePrefix = 'model_' . $this->getTable() . ':';
         $this->adaptedConnection->setCache($this);
     }
     return $this->adaptedConnection->getSchema()->getTable($this->table);
 }
コード例 #2
0
ファイル: SqlDb.php プロジェクト: rajeshpillai/df-sqldb
 public function refreshTableCache()
 {
     $this->dbConn->getSchema()->refresh();
 }