From a0797868fd715ae1274afb567e39a293388bfdf6 Mon Sep 17 00:00:00 2001 From: fogelito Date: Tue, 10 Feb 2026 12:24:49 +0200 Subject: [PATCH] addJoinCollection --- .../Databases/Http/Databases/Collections/Documents/XList.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php index 4d2932f955..b233fdd8bc 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php @@ -107,7 +107,10 @@ class XList extends Action throw new Exception($this->getParentNotFoundException(), params: [$join->getCollection()]); } - $join->setCollection('database_' . $database->getSequence() . '_collection_' . $col->getSequence()); + $collectionTableId = 'database_' . $database->getSequence() . '_collection_' . $col->getSequence(); + + $join->setCollection($collectionTableId); + $dbForProject->addJoinCollection($collectionTableId); } $cursor = Query::getCursorQueries($queries, false);