MongoDB::resetError

Clears any flagged errors on the database

&reftitle.description; public `array` `MongoDB::resetError`

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));
    }

    ?>

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

Returns the database response.

&reftitle.changelog;

&Version; | &Description;
1.2.11 | Emits `E_DEPRECATED` when used.