refactoring database query class.

This commit is contained in:
Taylor Otwell 2011-10-15 23:25:18 -05:00
parent 454a5107c4
commit 87e8dbeb32
1 changed files with 3 additions and 1 deletions

View File

@ -208,7 +208,9 @@ public function raw_or_where($where, $bindings = array())
*/
public function where($column, $operator, $value, $connector = 'AND')
{
$this->wheres[] = array_merge(array('type' => 'where'), compact('column', 'operator', 'value', 'connector'));
$type = 'where';
$this->wheres[] = compact('type', 'column', 'operator', 'value', 'connector');
$this->bindings[] = $value;