Skip to content

Commit

Permalink
Update ActiveRecord.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ziaratban committed May 7, 2023
1 parent 5bc7543 commit 77c309b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ public static function lockDocument($idOrWhere, $lockFieldNames, $modifyOptions

$set = [];
foreach (is_array($lockFieldNames) ? $lockFieldNames : [$lockFieldNames] as $key => $value) {
if(is_string($value)) {
if(is_int($key)) {
$set["_$value"] = new ObjectId;
}
else {
Expand Down

0 comments on commit 77c309b

Please sign in to comment.