From f3c7fa51aced107b0d17d0f3762c85efaab02201 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sat, 5 Oct 2024 10:17:46 +0300 Subject: [PATCH] BaseEntity: array to string --- application/Espo/ORM/BaseEntity.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/Espo/ORM/BaseEntity.php b/application/Espo/ORM/BaseEntity.php index 8da781bb0c..15fb97648e 100644 --- a/application/Espo/ORM/BaseEntity.php +++ b/application/Espo/ORM/BaseEntity.php @@ -507,6 +507,12 @@ class BaseEntity implements Entity return 'Object'; } + if (is_array($value)) { + // Prevents an error. + // @todo Remove in v10.0. + return 'Array'; + } + return strval($value); case self::BOOL: