Skip to content

Commit

Permalink
Allows writing "0" to row
Browse files Browse the repository at this point in the history
Resolves issue #82.
  • Loading branch information
marcusirgens authored May 28, 2017
1 parent 877d54f commit 3464371
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Manipulation/AbstractCreationalQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ public function getValues()
*/
public function setValues(array $values)
{
$this->values = \array_filter($values);

$this->values = \array_filter($values, function($value) {
if (is_int($value)) {
return true;
}
return $value;
});

return $this;
}
}

0 comments on commit 3464371

Please sign in to comment.