Skip to content

Commit 4decdb5

Browse files
authored
Merge pull request #84 from marcusirgens/patch-1
Allows writing "0" to row
2 parents a5f6c98 + 3464371 commit 4decdb5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: src/Manipulation/AbstractCreationalQuery.php

+7-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,13 @@ public function getValues()
5050
*/
5151
public function setValues(array $values)
5252
{
53-
$this->values = \array_filter($values);
54-
53+
$this->values = \array_filter($values, function($value) {
54+
if (is_int($value)) {
55+
return true;
56+
}
57+
return $value;
58+
});
59+
5560
return $this;
5661
}
5762
}

0 commit comments

Comments
 (0)