MongoDB
PHP Manual

MongoDB::resetError

(PECL mongo >=0.9.5)

MongoDB::resetErrorClears any flagged errors on the database

Описание

public array MongoDB::resetError ( void )

This method is not used in normal operations. It resets the database error tracker (which can be incremented with MongoDB::forceError(), also not normally used).

It is equivalent to running:

<?php

public function resetError() {
    return 
$this->command(array('reseterror' => 1));
}

?>

Список параметров

У этой функции нет параметров.

Возвращаемые значения

Returns the database response.


MongoDB
PHP Manual