Skip to content

Commit 79e1221

Browse files
committed
Merge pull request mongodb#289
2 parents af6f678 + 319f8a1 commit 79e1221

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/Operation/Find.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,6 @@ private function createQuery()
214214
{
215215
$options = [];
216216

217-
if ( ! empty($this->options['allowPartialResults'])) {
218-
$options['partial'] = true;
219-
}
220-
221217
if (isset($this->options['cursorType'])) {
222218
if ($this->options['cursorType'] === self::TAILABLE) {
223219
$options['tailable'] = true;
@@ -228,7 +224,7 @@ private function createQuery()
228224
}
229225
}
230226

231-
foreach (['batchSize', 'limit', 'skip', 'sort', 'noCursorTimeout', 'oplogReplay', 'projection', 'readConcern'] as $option) {
227+
foreach (['allowPartialResults', 'batchSize', 'comment', 'limit', 'maxTimeMS', 'noCursorTimeout', 'oplogReplay', 'projection', 'readConcern', 'skip', 'sort'] as $option) {
232228
if (isset($this->options[$option])) {
233229
$options[$option] = $this->options[$option];
234230
}
@@ -240,14 +236,6 @@ private function createQuery()
240236

241237
$modifiers = empty($this->options['modifiers']) ? [] : (array) $this->options['modifiers'];
242238

243-
if (isset($this->options['comment'])) {
244-
$modifiers['$comment'] = $this->options['comment'];
245-
}
246-
247-
if (isset($this->options['maxTimeMS'])) {
248-
$modifiers['$maxTimeMS'] = $this->options['maxTimeMS'];
249-
}
250-
251239
if ( ! empty($modifiers)) {
252240
$options['modifiers'] = $modifiers;
253241
}

0 commit comments

Comments
 (0)