diff --git a/application/Espo/ORM/BaseEntity.php b/application/Espo/ORM/BaseEntity.php index 5df79c2139..8da781bb0c 100644 --- a/application/Espo/ORM/BaseEntity.php +++ b/application/Espo/ORM/BaseEntity.php @@ -501,6 +501,12 @@ class BaseEntity implements Entity switch ($attributeType) { case self::VARCHAR: case self::TEXT: + if (is_object($value)) { + // Prevents an error. + // @todo Remove in v10.0. + return 'Object'; + } + return strval($value); case self::BOOL: