diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-04-14 13:39:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-14 13:39:31 +0200 |
commit | 3ca797129ced4546d4b3d0c5e84a1871decca55c (patch) | |
tree | 11f65b483cc599ccc775252c2c0362afda80459c /lib/public/AppFramework/Db/Entity.php | |
parent | e827e0a14061a08eb6009e3fa222c2e66a4ffaf6 (diff) | |
parent | 1c7ecfc54499d866b9913c135c0c7439634d8bb1 (diff) | |
download | nextcloud-server-3ca797129ced4546d4b3d0c5e84a1871decca55c.tar.gz nextcloud-server-3ca797129ced4546d4b3d0c5e84a1871decca55c.zip |
Merge pull request #31839 from nextcloud/feat/metadata-server
Add a metadata service to store file metadata
Diffstat (limited to 'lib/public/AppFramework/Db/Entity.php')
-rw-r--r-- | lib/public/AppFramework/Db/Entity.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Db/Entity.php b/lib/public/AppFramework/Db/Entity.php index 89e8f69859e..a059e3a27b0 100644 --- a/lib/public/AppFramework/Db/Entity.php +++ b/lib/public/AppFramework/Db/Entity.php @@ -120,6 +120,10 @@ abstract class Entity { if (!$args[0] instanceof \DateTime) { $args[0] = new \DateTime($args[0]); } + } elseif ($type === 'json') { + if (!is_array($args[0])) { + $args[0] = json_decode($args[0], true); + } } else { settype($args[0], $type); } |