src/Repository/Database.php
public function replace(UnitOfWork $replacement)
    {
        parent::replace($replacement);

        $this->connection->execute(
            sprintf("DELETE FROM %s WHERE unique_id = ?", $this->tableName),
            array (
                $replacement->getUniqueId(),
            )
        );
        unset($this->presentUidsOnConstruction[$replacement->getUniqueId()]);
    }
public function replace(UnitOfWork $replacement)
    {
        parent::replace($replacement);

        $this->connection->execute(
            sprintf("DELETE FROM %s WHERE unique_id = ?", $this->tableName),
            array (
                $replacement->getUniqueId(),
            )
        );
        unset($this->presentUidsOnConstruction[$replacement->getUniqueId()]);
    }
public function replace ( UnitOfWork $ replacement ) { parent :: replace ( $ replacement ) ; $ this -> connection -> execute ( sprintf ( "DELETE FROM %s WHERE unique_id = ?" , $ this -> tableName ) , array ( $ replacement -> getUniqueId ( ) , ) ) ; unset ( $ this -> presentUidsOnConstruction [ $ replacement -> getUniqueId ( ) ] ) ; }
Next to replacing the unit internally, the entry has to be also removed
in the database

@param UnitOfWork $replacement

@throws \Bytepark\Component\Migration\Exception\UnitNotPresentException

@return void
Next to replacing the unit internally the entry has to be also removed in the database