Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw warning in MongoCursor::timeout() #75

Merged
merged 1 commit into from
Mar 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion lib/Alcaeus/MongoDbAdapter/AbstractCursor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down