public function setPrimaryKey(PrimaryKey $primaryKey)
    {
        foreach ($primaryKey->getColumnNames() as $columnName) {
            $this->getColumn($columnName)->setNotNull(true);
        }

        $this->primaryKey = $primaryKey;
    }
public function setPrimaryKey(PrimaryKey $primaryKey)
    {
        foreach ($primaryKey->getColumnNames() as $columnName) {
            $this->getColumn($columnName)->setNotNull(true);
        }

        $this->primaryKey = $primaryKey;
    }
public function setPrimaryKey ( PrimaryKey $ primaryKey ) { foreach ( $ primaryKey -> getColumnNames ( ) as $ columnName ) { $ this -> getColumn ( $ columnName ) -> setNotNull ( true ) ; } $ this -> primaryKey = $ primaryKey ; }
Sets the table primery key.

@param \Fridge\DBAL\Schema\PrimaryKey $primaryKey The table primary key.
Sets the table primery key .