Pheasant\Database\Mysqli\Table::replace PHP Method

replace() public method

Inserts a row, or replaces it entirely if a row with the primary key exists
See also: http://dev.mysql.com/doc/refman/5.0/en/replace.html
public replace ( $data )
    public function replace($data)
    {
        if (empty($data)) {
            throw new Exception("Can't replace an empty row");
        }
        return $this->_connection->execute(sprintf('REPLACE INTO %s SET %s', $this->_name->quoted(), $this->_buildSet($data)), array_values($data));
    }