BaseEntity: cast to string

This commit is contained in:
Yuri Kuznetsov
2024-10-05 09:56:16 +03:00
parent a67b93cec0
commit fdc2e601d2

View File

@@ -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');