diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2024-09-17 12:53:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-17 12:53:41 +0200 |
commit | e4f5d394643887539094724735efe25a352f80cf (patch) | |
tree | a021a11f500de099ad73f53cb73517a9b50505e6 /lib | |
parent | 781cda5195565694a86f08a2af01fd062a7612f0 (diff) | |
parent | b7b5b5005026e600c7a3f59d4eacc6c0c0d7fe96 (diff) | |
download | nextcloud-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.php | 5 |
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(); |