Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3464371

Browse files
Allows writing "0" to row
Resolves issue #82.
1 parent 877d54f commit 3464371

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎src/Manipulation/AbstractCreationalQuery.php‎

Lines changed: 7 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /