BaseEntity: object to string case prevent error

This commit is contained in:
Yuri Kuznetsov
2024-10-05 10:04:22 +03:00
parent fdc2e601d2
commit 7ef73cc75a
+6
View File
@@ -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: