protected function isColumnAutoIncremental($table, $columns)
    {
        foreach ($columns as $column) {
            if (isset($table->columns[$column]) && $table->columns[$column]->autoIncrement) {
                return true;
            }
        }
        return false;
    }
protected function isColumnAutoIncremental($table, $columns)
    {
        foreach ($columns as $column) {
            if (isset($table->columns[$column]) && $table->columns[$column]->autoIncrement) {
                return true;
            }
        }
        return false;
    }
protected function isColumnAutoIncremental ( $ table , $ columns ) { foreach ( $ columns as $ column ) { if ( isset ( $ table -> columns [ $ column ] ) && $ table -> columns [ $ column ] -> autoIncrement ) { return true ; } } return false ; }
Checks if any of the specified columns is auto incremental.
@param \yii\db\TableSchema $table the table schema
@param array $columns columns to check for autoIncrement property
@return boolean whether any of the specified columns is auto incremental.
Checks if any of the specified columns is auto incremental .