We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 065539f commit 45a4c10Copy full SHA for 45a4c10
src/db/Mongo.php
@@ -536,6 +536,16 @@ public function getPk()
536
return $this->pk ?: $this->connection->getConfig('pk');
537
}
538
539
+ /**
540
+ * 执行查询但只返回Cursor对象
541
+ *
542
+ * @return Cursor
543
+ */
544
+ public function cursor(): Cursor
545
+ {
546
+ return $this->getCursor();
547
+ }
548
+
549
/**
550
* 执行查询但只返回Cursor对象
551
*
@@ -545,7 +555,7 @@ public function getCursor(): Cursor
555
{
556
$this->parseOptions();
557
- return $this->connection->getCursor($this);
558
+ return $this->connection->cursor($this);
559
560
561
0 commit comments