protected function getGenericPrimaryKey(array $primaryKey)
    {
        $genericPrimaryKey = new PrimaryKey($primaryKey[0]['name']);

        foreach ($primaryKey as $primaryKeyColumn) {
            $genericPrimaryKey->addColumnName($primaryKeyColumn['column_name']);
        }

        return $genericPrimaryKey;
    }
protected function getGenericPrimaryKey(array $primaryKey)
    {
        $genericPrimaryKey = new PrimaryKey($primaryKey[0]['name']);

        foreach ($primaryKey as $primaryKeyColumn) {
            $genericPrimaryKey->addColumnName($primaryKeyColumn['column_name']);
        }

        return $genericPrimaryKey;
    }
protected function getGenericPrimaryKey ( array $ primaryKey ) { $ genericPrimaryKey = new PrimaryKey ( $ primaryKey [ 0 ] [ 'name' ] ) ; foreach ( $ primaryKey as $ primaryKeyColumn ) { $ genericPrimaryKey -> addColumnName ( $ primaryKeyColumn [ 'column_name' ] ) ; } return $ genericPrimaryKey ; }
Gets the generic table primary key.

The $primaryKey parameter must contain:
- name
- column_name

@param array $primaryKey The primary key.

@return \Fridge\DBAL\Schema\PrimaryKey|null The generic primary key.
Gets the generic table primary key .