aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2024-09-16 11:08:35 +0200
committerGitHub <noreply@github.com>2024-09-16 11:08:35 +0200
commit8a328816333496a6ca507782d2b3b47bee470ba2 (patch)
tree76ee2d5afd60fc45cdb77b68ef416667b69a45a9 /lib/public
parent1a972d0f47ffaf688ee60781b2d6b1d1740ea4d1 (diff)
parent247b1dd70e4518012bf4a55dea56a349886b7b38 (diff)
downloadnextcloud-server-8a328816333496a6ca507782d2b3b47bee470ba2.tar.gz
nextcloud-server-8a328816333496a6ca507782d2b3b47bee470ba2.zip
Merge pull request #48008 from nextcloud/fix/entity/strict-types
Diffstat (limited to 'lib/public')
-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 a976c45482c..f37107ac128 100644
--- a/lib/public/AppFramework/Db/Entity.php
+++ b/lib/public/AppFramework/Db/Entity.php
@@ -54,9 +54,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();