Skip to content

Commit

Permalink
#16
Browse files Browse the repository at this point in the history
  • Loading branch information
selahattinunlu committed Jan 3, 2017
1 parent ec25e36 commit 3dd0fd5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,15 @@ private function addWhereToQuery($where)
} else if ($type == 'NotIn') {
$this->query->whereNotIn($key, $value);
} else {
$this->query->where($key, $operator, $value);
if ($value == '[null]') {
if ($operator == '=') {
$this->query->whereNull($key);
} else {
$this->query->whereNotNull($key);
}
} else {
$this->query->where($key, $operator, $value);
}
}
}

Expand Down

0 comments on commit 3dd0fd5

Please sign in to comment.