MongoDB\Driver\Cursor::rewind
(mongodb >=1.9.0)
MongoDB\Driver\Cursor::rewind — Rewind the cursor to the first result
Beschreibung
public MongoDB\Driver\Cursor::rewind
(
) : void
Parameter-Liste
Diese Funktion besitzt keine Parameter.
Fehler/Exceptions
-
Throws MongoDB\Driver\AuthenticationException if
authentication is needed and fails
-
Throws MongoDB\Driver\ConnectionException if
connection to the server fails for other then authentication reasons
- Throws MongoDB\Driver\Exception\LogicException if this method is called after the cursor has advanced beyond its first position.