From 0051bf5e26108bc390a012016c1959742da561d6 Mon Sep 17 00:00:00 2001 From: fogelito Date: Mon, 23 Mar 2026 17:43:06 +0200 Subject: [PATCH] getCollectionId --- composer.lock | 8 ++++---- .../Http/Databases/Collections/Documents/XList.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index c1a710fa5a..31005616dc 100644 --- a/composer.lock +++ b/composer.lock @@ -3854,12 +3854,12 @@ "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "89be130a4ba1b6317e00d4f0198231e54c9a5c42" + "reference": "d77451fe435f0cfeda96a4fa185b95f08c038ee3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/89be130a4ba1b6317e00d4f0198231e54c9a5c42", - "reference": "89be130a4ba1b6317e00d4f0198231e54c9a5c42", + "url": "https://api.github.com/repos/utopia-php/database/zipball/d77451fe435f0cfeda96a4fa185b95f08c038ee3", + "reference": "d77451fe435f0cfeda96a4fa185b95f08c038ee3", "shasum": "" }, "require": { @@ -3936,7 +3936,7 @@ "source": "https://github.com/utopia-php/database/tree/joins8", "issues": "https://github.com/utopia-php/database/issues" }, - "time": "2026-03-23T08:10:06+00:00" + "time": "2026-03-23T15:34:13+00:00" }, { "name": "utopia-php/detector", 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 073f4c2a2e..a409776d38 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 @@ -105,10 +105,10 @@ class XList extends Action $joins = Query::getJoinQueries($queries, false); foreach ($joins as $join) { - $col = $authorization->skip(fn () => $dbForProject->getDocument('database_' . $database->getSequence(), $join->getCollection())); + $col = $authorization->skip(fn () => $dbForProject->getDocument('database_' . $database->getSequence(), $join->getCollectionId())); if ($col->isEmpty() || (!$col->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { - throw new Exception($this->getParentNotFoundException(), params: [$join->getCollection()]); + throw new Exception($this->getParentNotFoundException(), params: [$join->getCollectionId()]); } $collectionTableId = 'database_' . $database->getSequence() . '_collection_' . $col->getSequence();