Browse Source

Merge pull request #1719 from neoascetic/fix_custom_grammar

One more fix about custom query grammar
Taylor Otwell 12 years ago
parent
commit
3f803d4eb3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      laravel/database/connection.php

+ 2 - 1
laravel/database/connection.php

@@ -75,7 +75,8 @@ class Connection {
 
 
 		if (isset(\Laravel\Database::$registrar[$this->driver()]))
 		if (isset(\Laravel\Database::$registrar[$this->driver()]))
 		{
 		{
-			return $this->grammar = \Laravel\Database::$registrar[$this->driver()]['query']();
+			$resolver = \Laravel\Database::$registrar[$this->driver()]['query'];
+			return $this->grammar = $resolver($this);
 		}
 		}
 
 
 		switch ($this->driver())
 		switch ($this->driver())