mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-03 06:42:23 +02:00
This cursor needs a firstBatch, just like the CommandCursor
This commit is contained in:
@@ -26,11 +26,13 @@ final class QueryCursor implements Cursor
|
||||
*
|
||||
* @param Server $server
|
||||
* @param CursorId $cursorId
|
||||
* @param array $firstBatch
|
||||
*/
|
||||
public function __construct(Server $server, CursorId $cursorId)
|
||||
public function __construct(Server $server, CursorId $cursorId, array $firstBatch)
|
||||
{
|
||||
$this->server = $server;
|
||||
$this->cursorId = $cursorId;
|
||||
$this->firstBatch = $firstBatch;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user