yii\sphinx\Command::replace PHP Метод

replace() публичный Метод

For example, php $connection->createCommand()->replace('idx_user', [ 'name' => 'Sam', 'age' => 30, ])->execute(); The method will properly escape the column names, and bind the values to be replaced. Note that the created command is not executed until [[execute()]] is called.
public replace ( string $index, array $columns )
$index string the index that new rows will be replaced into.
$columns array the column data (name => value) to be replaced into the index.
    public function replace($index, $columns)
    {
        $params = [];
        $sql = $this->db->getQueryBuilder()->replace($index, $columns, $params);
        return $this->setSql($sql)->bindValues($params);
    }