Commit 4b3965e4 authored by Han Lin Yap's avatar Han Lin Yap

Fix bug when using raw_where with eloquent

parent 4a52aabd
...@@ -175,7 +175,7 @@ class Query { ...@@ -175,7 +175,7 @@ class Query {
*/ */
public function raw_where($where, $bindings = array(), $connector = 'AND') public function raw_where($where, $bindings = array(), $connector = 'AND')
{ {
$this->wheres[] = array('type' => 'raw', 'connector' => $connector, 'sql' => $where); $this->wheres[] = array('type' => 'where_raw', 'connector' => $connector, 'sql' => $where);
$this->bindings = array_merge($this->bindings, $bindings); $this->bindings = array_merge($this->bindings, $bindings);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment