yii\db\mssql\Schema::findPrimaryKeys PHP Method

findPrimaryKeys() protected method

Collects the primary key column details for the given table.
protected findPrimaryKeys ( yii\db\mssql\TableSchema $table )
$table yii\db\mssql\TableSchema the table metadata
    protected function findPrimaryKeys($table)
    {
        $result = [];
        foreach ($this->findTableConstraints($table, 'PRIMARY KEY') as $row) {
            $result[] = $row['field_name'];
        }
        $table->primaryKey = $result;
    }