mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-30 07:56:05 +00:00
BaseEntity: cast to string
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user