Skip to content

Commit 6394dc6

Browse files
committed
Only disallow tenant and internalId
1 parent 6b4aafa commit 6394dc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Database/Database.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4731,7 +4731,8 @@ public function createOrUpdateDocumentsWithIncrease(
47314731
)));
47324732
}
47334733

4734-
if ($old->getAttributes() == $document->getAttributes()) {
4734+
$disallowed = ['$tenant', '$internalId'];
4735+
if ($old->getArrayCopy(disallow: $disallowed) == $document->getArrayCopy(disallow: $disallowed)) {
47354736
unset($documents[$key]);
47364737
continue;
47374738
}

0 commit comments

Comments
 (0)