lib/gii/cascadeTypeModule/Generator.php
public function getPrimaryKeyLocation($table)
    {
        // if multiple, put the primary key in the indicies section
        $count = 0;
        foreach ($table->columns as $column) {
            if ($column->isPrimaryKey) {
                $count++;
            }
            if ($count > 1) {
                return 'index';
            }
        }

        return 'table_build';
    }
public function getPrimaryKeyLocation($table)
    {
        // if multiple, put the primary key in the indicies section
        $count = 0;
        foreach ($table->columns as $column) {
            if ($column->isPrimaryKey) {
                $count++;
            }
            if ($count > 1) {
                return 'index';
            }
        }

        return 'table_build';
    }
Get primary key location.

@param [[@doctodo param_type:table]] $table [[@doctodo param_description:table]]

@return [[@doctodo return_type:getPrimaryKeyLocation]] [[@doctodo return_description:getPrimaryKeyLocation]]