diff --git a/laravel/database/connection.php b/laravel/database/connection.php index 8613ec79..2912ebd4 100644 --- a/laravel/database/connection.php +++ b/laravel/database/connection.php @@ -222,7 +222,7 @@ protected function execute($sql, $bindings = array()) // execution time in a static array that is accessed by all of // the connections used by the application. This allows us to // review all of the executed SQL. - static::log($sql, $bindings, $time); + $this->log($sql, $bindings, $time); return array($statement, $result); } @@ -268,7 +268,7 @@ protected function transform($sql, $bindings) * @param int $time * @return void */ - protected static function log($sql, $bindings, $time) + protected function log($sql, $bindings, $time) { Event::fire('laravel: query', array($sql, $bindings, $time));