Skip to content

Commit 7a59393

Browse files
committed
Name fix
1 parent 4084205 commit 7a59393

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/Database/Adapter/MariaDB.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,11 +1530,15 @@ public function createOrUpdateDocuments(
15301530
$stmtAddPermissions->execute();
15311531
}
15321532

1533-
$internalIds = $this->getInternalIds($collection, $documentIds, $documentTenants);
1533+
$internalIds = $this->getInternalIds(
1534+
$collection,
1535+
$documentIds,
1536+
$documentTenants
1537+
);
15341538

1535-
foreach ($changes as $document) {
1536-
if (isset($internalIds[$document->getNew()->getId()])) {
1537-
$document->getNew()->setAttribute('$internalId', $internalIds[$document->getNew()->getId()]);
1539+
foreach ($changes as $change) {
1540+
if (isset($internalIds[$change->getNew()->getId()])) {
1541+
$change->getNew()->setAttribute('$internalId', $internalIds[$change->getNew()->getId()]);
15381542
}
15391543
}
15401544
} catch (PDOException $e) {

0 commit comments

Comments
 (0)