Skip to content

Commit f6e4458

Browse files
authored
Merge pull request #47 from utopia-php/fix-mariadb-internal-id
fix: add internal id on getDocument
2 parents a1b89a8 + d21f661 commit f6e4458

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Database/Adapter/MariaDB.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ public function getDocument(string $collection, string $id): Document
319319
}
320320

321321
$document['$id'] = $document['_uid'];
322+
$document['$internalId'] = $document['_id'];
322323
$document['$read'] = (isset($document['_read'])) ? json_decode($document['_read'], true) : [];
323324
$document['$write'] = (isset($document['_write'])) ? json_decode($document['_write'], true) : [];
324325

@@ -1105,4 +1106,4 @@ protected function getPDO()
11051106
{
11061107
return $this->pdo;
11071108
}
1108-
}
1109+
}

0 commit comments

Comments
 (0)