diff --git a/README.md b/README.md index a020d836..a8115605 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,9 @@ unserializing them. authentication information. - The [setFlag](https://php.net/manual/en/mongocursor.setflag.php) method is not yet implemented. + - The [timeout](https://php.net/manual/en/mongocursor.timeout.php) method will + not change any query options. Client-side timeouts are no longer supported by + the new driver. Use the maxTimeMS setting as a replacement. ## MongoCommandCursor - The [createFromDocument](https://php.net/manual/en/mongocommandcursor.createfromdocument.php) diff --git a/lib/Alcaeus/MongoDbAdapter/AbstractCursor.php b/lib/Alcaeus/MongoDbAdapter/AbstractCursor.php index fc33584f..01534984 100644 --- a/lib/Alcaeus/MongoDbAdapter/AbstractCursor.php +++ b/lib/Alcaeus/MongoDbAdapter/AbstractCursor.php @@ -246,7 +246,8 @@ public function setReadPreference($readPreference, $tags = null) */ public function timeout($ms) { - $this->notImplemented(); + trigger_error('The ' . __METHOD__ . ' method is not implemented in mongo-php-adapter', E_USER_WARNING); + return $this; } /**