Skip to content

Commit 9faf41f

Browse files
committed
Fix tenant cache
1 parent 14b4e18 commit 9faf41f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/Database/Adapter/MariaDB.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,14 +1414,12 @@ public function createOrUpdateDocuments(
14141414
$attributes['_id'] = $document->getInternalId();
14151415
} else {
14161416
$documentIds[] = $document->getId();
1417-
1418-
if ($this->sharedTables) {
1419-
$documentTenants[] = $document->getTenant();
1420-
}
14211417
}
14221418

14231419
if ($this->sharedTables) {
1424-
$attributes['_tenant'] = $document->getTenant();
1420+
$attributes['_tenant']
1421+
= $documentTenants[]
1422+
= $document->getTenant();
14251423
}
14261424

14271425
$columns = [];

0 commit comments

Comments
 (0)