Migrations\View\Helper\MigrationHelper::primaryKeysColumnsList PHP Метод

primaryKeysColumnsList() публичный Метод

Returns the primary key columns name for a given table
public primaryKeysColumnsList ( string $table ) : array
$table string Name of the table ot retrieve primary key for
Результат array
    public function primaryKeysColumnsList($table)
    {
        $primaryKeys = $this->primaryKeys($table);
        $primaryKeysColumns = Hash::extract($primaryKeys, '{n}.name');
        sort($primaryKeysColumns);
        return $primaryKeysColumns;
    }