refactoring database query class.
This commit is contained in:
parent
454a5107c4
commit
87e8dbeb32
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue