Fix bug when using raw_where with eloquent

This commit is contained in:
Han Lin Yap 2011-12-27 11:35:37 +01:00
parent 4a52aabd15
commit 4b3965e461
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ public function reset_where()
*/
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);