BoolCast: Don't cast string values in toDb()

This commit is contained in:
Johannes Meyer 2019-11-08 13:27:55 +01:00
parent d97847dee7
commit ceec8ab017

View file

@ -13,6 +13,10 @@ class BoolCast extends PropertyBehavior
public function toDb($value, $_)
{
if (is_string($value)) {
return $value;
}
return $value ? 'y' : 'n';
}
}