refactoring database query class.

This commit is contained in:
Taylor Otwell
2011-10-15 23:25:18 -05:00
parent 454a5107c4
commit 87e8dbeb32

View File

@@ -208,7 +208,9 @@ class Query {
*/
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;