aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2024-09-17 12:53:41 +0200
committerGitHub <noreply@github.com>2024-09-17 12:53:41 +0200
commite4f5d394643887539094724735efe25a352f80cf (patch)
treea021a11f500de099ad73f53cb73517a9b50505e6 /lib
parent781cda5195565694a86f08a2af01fd062a7612f0 (diff)
parentb7b5b5005026e600c7a3f59d4eacc6c0c0d7fe96 (diff)
downloadnextcloud-server-e4f5d394643887539094724735efe25a352f80cf.tar.gz
nextcloud-server-e4f5d394643887539094724735efe25a352f80cf.zip
Merge pull request #48088 from nextcloud/backport/48008/stable30
Diffstat (limited to 'lib')
-rw-r--r--lib/public/AppFramework/Db/Entity.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/public/AppFramework/Db/Entity.php b/lib/public/AppFramework/Db/Entity.php
index 46104e2faa4..ac6aa100024 100644
--- a/lib/public/AppFramework/Db/Entity.php
+++ b/lib/public/AppFramework/Db/Entity.php
@@ -52,9 +52,8 @@ abstract class Entity {
$instance = new static();
foreach ($row as $key => $value) {
- $prop = ucfirst($instance->columnToProperty($key));
- $setter = 'set' . $prop;
- $instance->$setter($value);
+ $prop = $instance->columnToProperty($key);
+ $instance->setter($prop, [$value]);
}
$instance->resetUpdatedFields();