src/Database/Row.php
public function assignId(int $id): void
    {
        if (isset($this->values[$this->primaryKeyColumn])) {
            return; // This is not an auto-generated key
        }

        $this->values[$this->primaryKeyColumn] = $id;
    }
public function assignId(int $id): void
    {
        if (isset($this->values[$this->primaryKeyColumn])) {
            return; // This is not an auto-generated key
        }

        $this->values[$this->primaryKeyColumn] = $id;
    }
public function assignId ( int $ id ) : void { if ( isset ( $ this -> values [ $ this -> primaryKeyColumn ] ) ) { return ; // This is not an auto-generated key } $ this -> values [ $ this -> primaryKeyColumn ] = $ id ; }
It will skip the assignment if there's already a value for the primary key column
It will skip the assignment if there s already a value for the primary key column