src/Schema/State.php
public function getPrimaryKeys(): array
    {
        $primaryColumns = [];
        foreach ($this->getColumns() as $column) {
            if ($column->getAbstractType() == 'primary' || $column->getAbstractType() == 'bigPrimary') {
                if (!in_array($column->getName(), $this->primaryKeys)) {
                    //Only columns not listed as primary keys already
                    $primaryColumns[] = $column->getName();
                }
            }
        }

        return array_unique(array_merge($this->primaryKeys, $primaryColumns));
    }
public function getPrimaryKeys(): array
    {
        $primaryColumns = [];
        foreach ($this->getColumns() as $column) {
            if ($column->getAbstractType() == 'primary' || $column->getAbstractType() == 'bigPrimary') {
                if (!in_array($column->getName(), $this->primaryKeys)) {
                    //Only columns not listed as primary keys already
                    $primaryColumns[] = $column->getName();
                }
            }
        }

        return array_unique(array_merge($this->primaryKeys, $primaryColumns));
    }
public function getPrimaryKeys ( ) : array { $ primaryColumns = [ ] ; foreach ( $ this -> getColumns ( ) as $ column ) { if ( $ column -> getAbstractType ( ) == 'primary' || $ column -> getAbstractType ( ) == 'bigPrimary' ) { if ( ! in_array ( $ column -> getName ( ) , $ this -> primaryKeys ) ) { //Only columns not listed as primary keys already $ primaryColumns [ ] = $ column -> getName ( ) ; } } } return array_unique ( array_merge ( $ this -> primaryKeys , $ primaryColumns ) ) ; }
Method combines primary keys with primary keys automatically calculated based on registered columns.

@return array
Method combines primary keys with primary keys automatically calculated based on registered columns .