Skip to content

Commit

Permalink
Fixes issue #379 - Deprecation error with MongoDB 1.20+
Browse files Browse the repository at this point in the history
  • Loading branch information
Radeox committed Oct 2, 2024
1 parent 6a9d4cb commit 49bba98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Query.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
Expand Down Expand Up @@ -212,7 +213,7 @@ public function buildCursor($db = null)
*/
protected function fetchRows($cursor, $all = true, $indexBy = null)
{
$token = 'fetch cursor id = ' . $cursor->getId();
$token = 'fetch cursor id = ' . $cursor->getId(true);
Yii::info($token, __METHOD__);
try {
Yii::beginProfile($token, __METHOD__);
Expand Down

0 comments on commit 49bba98

Please sign in to comment.