Skip to content

Commit 4b07166

Browse files
authored
Merge pull request #12 from super-dm3/master
Fix setId() with BSON/ObjectId argument
2 parents 3a3b65e + b000421 commit 4b07166

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Mvc/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@ public function setId($id): void
427427
} else {
428428
$this->_id = $id;
429429
}
430+
} else {
431+
$this->_id = $id;
430432
}
431433
}
432434

0 commit comments

Comments
 (0)