Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
79e12213
Commit
79e12213
authored
Dec 01, 2016
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #289
parents
af6f6788
319f8a1b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
Find.php
src/Operation/Find.php
+1
-13
No files found.
src/Operation/Find.php
View file @
79e12213
...
...
@@ -214,10 +214,6 @@ class Find implements Executable
{
$options
=
[];
if
(
!
empty
(
$this
->
options
[
'allowPartialResults'
]))
{
$options
[
'partial'
]
=
true
;
}
if
(
isset
(
$this
->
options
[
'cursorType'
]))
{
if
(
$this
->
options
[
'cursorType'
]
===
self
::
TAILABLE
)
{
$options
[
'tailable'
]
=
true
;
...
...
@@ -228,7 +224,7 @@ class Find implements Executable
}
}
foreach
([
'
batchSize'
,
'limit'
,
'skip'
,
'sort'
,
'noCursorTimeout'
,
'oplogReplay'
,
'projection'
,
'readConcern
'
]
as
$option
)
{
foreach
([
'
allowPartialResults'
,
'batchSize'
,
'comment'
,
'limit'
,
'maxTimeMS'
,
'noCursorTimeout'
,
'oplogReplay'
,
'projection'
,
'readConcern'
,
'skip'
,
'sort
'
]
as
$option
)
{
if
(
isset
(
$this
->
options
[
$option
]))
{
$options
[
$option
]
=
$this
->
options
[
$option
];
}
...
...
@@ -240,14 +236,6 @@ class Find implements Executable
$modifiers
=
empty
(
$this
->
options
[
'modifiers'
])
?
[]
:
(
array
)
$this
->
options
[
'modifiers'
];
if
(
isset
(
$this
->
options
[
'comment'
]))
{
$modifiers
[
'$comment'
]
=
$this
->
options
[
'comment'
];
}
if
(
isset
(
$this
->
options
[
'maxTimeMS'
]))
{
$modifiers
[
'$maxTimeMS'
]
=
$this
->
options
[
'maxTimeMS'
];
}
if
(
!
empty
(
$modifiers
))
{
$options
[
'modifiers'
]
=
$modifiers
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment