Commit adcbbb59 authored by Benjamin Eberlei's avatar Benjamin Eberlei

DBAL-134 - Doctrine\DBAL\Connection::query() skips query cache

parent 2cb22496
...@@ -661,7 +661,20 @@ class Connection implements DriverConnection ...@@ -661,7 +661,20 @@ class Connection implements DriverConnection
{ {
$this->connect(); $this->connect();
return call_user_func_array(array($this->_conn, 'query'), func_get_args()); $args = func_get_args();
$logger = $this->getConfiguration()->getSQLLogger();
if ($logger) {
$logger->startQuery($args[0]);
}
$statement = call_user_func_array(array($this->_conn, 'query'), $args);
if ($logger) {
$logger->stopQuery();
}
return $statement;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment