From 938b376f3c811591b5f405123a0838e19908d3fd Mon Sep 17 00:00:00 2001 From: Darshan Date: Fri, 9 May 2025 10:02:14 +0530 Subject: [PATCH] fix: var ref. --- .../Databases/Http/Databases/Collections/Documents/Update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php index 9b373c7e17..eaaa2bb63f 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php @@ -287,7 +287,7 @@ class Update extends Action $response->dynamic($document, $this->getResponseModel()); $relationships = \array_map( - fn ($row) => $document->getAttribute('key'), + fn ($document) => $document->getAttribute('key'), \array_filter( $collection->getAttribute('attributes', []), fn ($attribute) => $attribute->getAttribute('type') === Database::VAR_RELATIONSHIP