cleaning up various codes.

This commit is contained in:
Taylor Otwell
2012-02-13 23:51:33 -06:00
parent f27ec7ab95
commit 479b3f6773
5 changed files with 54 additions and 17 deletions

View File

@@ -401,11 +401,11 @@ class Query {
// will allow the developer to have a fresh query.
$query = new Query($this->connection, $this->grammar, $this->from);
// Once the callback has been run on the query, we will store the
// nested query instance on the where clause array so that it's
// passed to the query grammar.
call_user_func($callback, $query);
// Once the callback has been run on the query, we will store the
// nested query instance on the where clause array so that it's
// passed to the query's query grammar instance.
$this->wheres[] = compact('type', 'query', 'connector');
$this->bindings = array_merge($this->bindings, $query->bindings);