fix bug affecting using db::raw with eloquent.

This commit is contained in:
Taylor Otwell
2011-12-10 21:54:07 -06:00
parent 791dbdebe7
commit ddd6d44782

View File

@@ -158,6 +158,8 @@ class Connection {
if ($value instanceof Expression) unset($bindings[$key]);
}
$bindings = array_values($bindings);
$sql = $this->transform($sql, $bindings);
$this->queries[] = compact('sql', 'bindings');