Commit 7c7783a5 by Alexander Makarov

Booleans are now stored as 0 or 1 in Redis

parent 660fa461
......@@ -123,6 +123,9 @@ class ActiveRecord extends BaseActiveRecord
$delArgs = [$key];
foreach ($values as $attribute => $value) {
if ($value !== null) {
if (is_bool($value)) {
$value = (int)$value;
}
$setArgs[] = $attribute;
$setArgs[] = $value;
} else {
......@@ -177,6 +180,9 @@ class ActiveRecord extends BaseActiveRecord
$newPk[$attribute] = $value;
}
if ($value !== null) {
if (is_bool($value)) {
$value = (int)$value;
}
$setArgs[] = $attribute;
$setArgs[] = $value;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment