Skip to content

Commit 4d618c6

Browse files
authored
Merge pull request #805 from utopia-php/fix/mongo-stdclass-to-array
2 parents 3240bab + 8be16e9 commit 4d618c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Database/Adapter/Mongo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2096,7 +2096,7 @@ public function find(Document $collection, array $queries = [], ?int $limit = 25
20962096

20972097
foreach ($moreResults as $result) {
20982098
$record = $this->replaceChars('_', '$', (array)$result);
2099-
$found[] = new Document($record);
2099+
$found[] = new Document($this->convertStdClassToArray($record));
21002100
}
21012101

21022102
$cursorId = (int)($moreResponse->cursor->id ?? 0);

0 commit comments

Comments
 (0)