From 40185b97e68445d184cb8fafc340a112a787f3dd Mon Sep 17 00:00:00 2001 From: Fabian Schmid Date: Mon, 16 Oct 2023 09:54:27 +0200 Subject: [PATCH] [FIX] 0038013: added comment on how to use update method # Conflicts: # Services/Database/interfaces/interface.ilDBInterface.php --- Services/Database/interfaces/interface.ilDBInterface.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Services/Database/interfaces/interface.ilDBInterface.php b/Services/Database/interfaces/interface.ilDBInterface.php index 46cee3091e7f..795af4149a85 100644 --- a/Services/Database/interfaces/interface.ilDBInterface.php +++ b/Services/Database/interfaces/interface.ilDBInterface.php @@ -1,7 +1,5 @@ @@ -92,6 +92,8 @@ public function insert(string $table_name, array $values): int; public function fetchObject(ilDBStatement $query_result): ?stdClass; /** + * @description $where MUST contain existing columns only. statements like [1 => ['integer', 1]] will not work, use a full query and @see manipulate() instead in that case. + * * @return int The number of rows affected by the manipulation */ public function update(string $table_name, array $values, array $where): int; @@ -294,5 +296,5 @@ public function groupConcat(string $a_field_name, string $a_seperator = ",", ?st public function cast(string $a_field_name, string $a_dest_type): string; - public function primaryExistsByFields(string $table_name, array $fields) : bool; + public function primaryExistsByFields(string $table_name, array $fields): bool; }