getColumn() public method Gets the named column metadata. This is a convenient method for retrieving a named column even if it does not exist. public yii\db\ColumnSchema getColumn ( $name )$name string Column name return yii\db\ColumnSchema Metadata of the named column. Null if the named column does not exist.
fixPrimaryKey() public method Manually specifies the primary key for this table. public void fixPrimaryKey ( $keys )$keys string|array The primary key (can be composite) throws yii\base\InvalidParamException if the specified key cannot be found in the table.
$sequenceName public property Sequence name for the primary key. Null if no sequence. public string $sequenceName = null
$schemaName public property The name of the schema that this table belongs to. public string $schemaName = null
$primaryKey public property Primary keys of this table. public string[] $primaryKey = []
$name public property The name of this table. The schema name is not included. Use $fullName to get the name with schema name prefix. public string $name = null
$fullName public property The full name of this table, which includes the schema name prefix, if any. Note that if the schema name is the same as the default schema name, the schema name will not be included. public string $fullName = null
$foreignKeys public property Foreign keys of this table. Each array element is of the following structure: [ 'ForeignTableName', 'fk1' => 'pk1', // pk1 is in foreign table 'fk2' => 'pk2', // if composite foreign key ] public array $foreignKeys = []
$columns public property Column metadata of this table. Each array element is a yii\db\ColumnSchema object, indexed by column names. public yii\db\ColumnSchema[] $columns = []
$columnNames public read-only property List of column names public array getColumnNames ( )
Page 395 of 633