From fdc2e601d2b37164c31bb86b3d287c3eb1981d42 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sat, 5 Oct 2024 09:56:16 +0300 Subject: [PATCH] BaseEntity: cast to string --- application/Espo/ORM/BaseEntity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Espo/ORM/BaseEntity.php b/application/Espo/ORM/BaseEntity.php index 44230d80d3..5df79c2139 100644 --- a/application/Espo/ORM/BaseEntity.php +++ b/application/Espo/ORM/BaseEntity.php @@ -500,8 +500,8 @@ class BaseEntity implements Entity switch ($attributeType) { case self::VARCHAR: - // @todo Convert to string if not null in v9.0. - return $value; + case self::TEXT: + return strval($value); case self::BOOL: return ($value === 1 || $value === '1' || $value === true || $value === 'true');