loadTableSchema() protected method

Loads the metadata for the specified table.
protected loadTableSchema ( string $name ) : yii\db\TableSchema
$name string table name
return yii\db\TableSchema driver dependent table metadata. Null if the table does not exist.
Example #1
0
 /**
  * @inheritdoc
  * @return TableSchema
  */
 protected function loadTableSchema($name)
 {
     $table = parent::loadTableSchema($name);
     if (is_object($table)) {
         $table = new TableSchema(get_object_vars($table));
         $this->findComment($table);
         $this->findIsView($table);
         $this->findUniqueKeys($table);
         $this->findTitleKey($table);
         $table->fix();
     }
     return $table;
 }