src/InsertOnDuplicateKey.php
protected static function buildReplaceSql(array $data)
    {
        $first = static::getFirstRow($data);

        $sql  = 'REPLACE INTO `' . static::getTablePrefix() . static::getTableName() . '`(' . static::getColumnList($first) . ') VALUES' . PHP_EOL;
        $sql .=  static::buildQuestionMarks($data);

        return $sql;
    }
protected static function buildReplaceSql(array $data)
    {
        $first = static::getFirstRow($data);

        $sql  = 'REPLACE INTO `' . static::getTablePrefix() . static::getTableName() . '`(' . static::getColumnList($first) . ') VALUES' . PHP_EOL;
        $sql .=  static::buildQuestionMarks($data);

        return $sql;
    }
protected static function buildReplaceSql ( array $ data ) { $ first = static :: getFirstRow ( $ data ) ; $ sql = 'REPLACE INTO `' . static :: getTablePrefix ( ) . static :: getTableName ( ) . '`(' . static :: getColumnList ( $ first ) . ') VALUES' . PHP_EOL ; $ sql .= static :: buildQuestionMarks ( $ data ) ; return $ sql ; }
Build REPLACE sql statement.

@param array $data

@return string
Build REPLACE sql statement .