One more fix about custom query grammar

This commit is contained in:
Pavel Puchkin 2013-02-18 15:18:10 +11:00
parent 23d23dd07c
commit 9003957b28
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ protected function grammar()
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())