Skip to content

Commit 27cbf0b

Browse files
committed
Casting VAR_ID string
1 parent 1bf59b5 commit 27cbf0b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Database/Database.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6518,6 +6518,9 @@ public function casting(Document $collection, Document $document): Document
65186518
if ($this->adapter->getIdAttributeType() === Database::VAR_ID_INT) {
65196519
$node = (int)$node;
65206520
}
6521+
else {
6522+
$node = (string)$node;
6523+
}
65216524
break;
65226525
case self::VAR_INTEGER:
65236526
$node = (int)$node;

0 commit comments

Comments
 (0)