We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 979e3d9 commit 053147cCopy full SHA for 053147c
src/Resource.php
@@ -332,6 +332,9 @@ public function save($insert = null) {
332
switch ($field->type) {
333
case 'boolean':
334
$this->{$field->field} = $this->{$field->field} ? true : false;
335
+ if ($this->db()->driver() == 'mysql') {
336
+ $this->{$field->field} = $this->{$field->field} ? 1 : 0;
337
+ }
338
break;
339
340
case 'int':
0 commit comments