Commit 85781662 authored by Jeremy Mikola's avatar Jeremy Mikola

Merge pull request #124

parents 76344d13 04a84b65
...@@ -198,11 +198,11 @@ class Find implements Executable ...@@ -198,11 +198,11 @@ class Find implements Executable
$options['partial'] = true; $options['partial'] = true;
} }
if (isset($options['cursorType'])) { if (isset($this->options['cursorType'])) {
if ($options['cursorType'] === self::TAILABLE) { if ($this->options['cursorType'] === self::TAILABLE) {
$options['tailable'] = true; $options['tailable'] = true;
} }
if ($options['cursorType'] === self::TAILABLE_AWAIT) { if ($this->options['cursorType'] === self::TAILABLE_AWAIT) {
$options['tailable'] = true; $options['tailable'] = true;
$options['awaitData'] = true; $options['awaitData'] = true;
} }
...@@ -216,11 +216,11 @@ class Find implements Executable ...@@ -216,11 +216,11 @@ class Find implements Executable
$modifiers = empty($this->options['modifiers']) ? [] : (array) $this->options['modifiers']; $modifiers = empty($this->options['modifiers']) ? [] : (array) $this->options['modifiers'];
if (isset($options['comment'])) { if (isset($this->options['comment'])) {
$modifiers['$comment'] = $options['comment']; $modifiers['$comment'] = $options['comment'];
} }
if (isset($options['maxTimeMS'])) { if (isset($this->options['maxTimeMS'])) {
$modifiers['$maxTimeMS'] = $options['maxTimeMS']; $modifiers['$maxTimeMS'] = $options['maxTimeMS'];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment