From 4b3965e46194d50d5ae59f4985fed3cb61869aeb Mon Sep 17 00:00:00 2001 From: Han Lin Yap Date: Tue, 27 Dec 2011 11:35:37 +0100 Subject: [PATCH] Fix bug when using raw_where with eloquent --- laravel/database/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/database/query.php b/laravel/database/query.php index 76928792..93364675 100644 --- a/laravel/database/query.php +++ b/laravel/database/query.php @@ -175,7 +175,7 @@ class Query { */ 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);