resetError() public method

Clears any flagged errors on the database
public resetError ( ) : array
return array Returns the database response.
Ejemplo n.º 1
0
 public function testResetError() {
     $this->object->resetError();
     $err = $this->object->lastError();
     $this->assertEquals($err['err'], null);
     $this->assertEquals($err['n'], 0);
     $this->assertEquals((bool)$err['ok'], true);
 }
Ejemplo n.º 2
0
 /**
  * Wrapper method for MongoDB::resetError().
  *
  * @deprecated 1.1 Deprecated in driver; will be removed for 1.2
  * @see http://php.net/manual/en/mongodb.reseterror.php
  * @return array
  */
 public function resetError()
 {
     return $this->mongoDB->resetError();
 }
Ejemplo n.º 3
0
 public function resetError()
 {
     return $this->_connected ? $this->_db->resetError() : NULL;
 }