MongoDB::forceError()
(No version information available, might only be in SVN)
— Creates a database error
Beschreibung
public bool MongoDB::forceError
( void
)
This method is not very useful for normal MongoDB use. It forces a database error to occur. This means that MongoDB::lastError() will return a generic database error after running this command.
This command is identical to running:
<?php
public function forceError() {
return $this->command(array('forceerror' => 1));
}
?>
Parameter-Liste
Diese Funktion hat keine Parameter.
Rückgabewerte
Returns the database response.
There are no user contributed notes for this page.
