Commit 3e0ec239 authored by Matty Driessen's avatar Matty Driessen

Removed leading underscore of private property _defaultFetchMode because of changed visibility

parent 513228d7
......@@ -177,7 +177,7 @@ class Connection implements DriverConnection
/**
* @var integer
*/
protected $_defaultFetchMode = PDO::FETCH_ASSOC;
protected $defaultFetchMode = PDO::FETCH_ASSOC;
/**
* Initializes a new instance of the Connection class.
......@@ -373,7 +373,7 @@ class Connection implements DriverConnection
*/
public function setFetchMode($fetchMode)
{
$this->_defaultFetchMode = $fetchMode;
$this->defaultFetchMode = $fetchMode;
}
/**
......@@ -648,7 +648,7 @@ class Connection implements DriverConnection
throw DBALException::driverExceptionDuringQuery($ex, $statement);
}
$stmt->setFetchMode($this->_defaultFetchMode);
$stmt->setFetchMode($this->defaultFetchMode);
return $stmt;
}
......@@ -701,7 +701,7 @@ class Connection implements DriverConnection
throw DBALException::driverExceptionDuringQuery($ex, $query, $this->resolveParams($params, $types));
}
$stmt->setFetchMode($this->_defaultFetchMode);
$stmt->setFetchMode($this->defaultFetchMode);
if ($logger) {
$logger->stopQuery();
......@@ -745,7 +745,7 @@ class Connection implements DriverConnection
$stmt = new ResultCacheStatement($this->executeQuery($query, $params, $types), $resultCache, $cacheKey, $realKey, $qcp->getLifetime());
}
$stmt->setFetchMode($this->_defaultFetchMode);
$stmt->setFetchMode($this->defaultFetchMode);
return $stmt;
}
......@@ -810,7 +810,7 @@ class Connection implements DriverConnection
throw DBALException::driverExceptionDuringQuery($ex, $args[0]);
}
$statement->setFetchMode($this->_defaultFetchMode);
$statement->setFetchMode($this->defaultFetchMode);
if ($logger) {
$logger->stopQuery();
......
......@@ -113,7 +113,7 @@ class Connection extends \Doctrine\DBAL\Connection
public function executeQuery($query, array $params = array(), $types = array(), QueryCacheProfile $qcp = null)
{
$stmt = new Statement(parent::executeQuery($query, $params, $types, $qcp), $this);
$stmt->setFetchMode($this->_defaultFetchMode);
$stmt->setFetchMode($this->defaultFetchMode);
return $stmt;
}
......@@ -124,7 +124,7 @@ class Connection extends \Doctrine\DBAL\Connection
public function prepare($statement)
{
$stmt = new Statement(parent::prepare($statement), $this);
$stmt->setFetchMode($this->_defaultFetchMode);
$stmt->setFetchMode($this->defaultFetchMode);
return $stmt;
}
......@@ -138,7 +138,7 @@ class Connection extends \Doctrine\DBAL\Connection
$stmt = call_user_func_array(array($this->_conn, 'query'), func_get_args());
$stmt = new Statement($stmt, $this);
$stmt->setFetchMode($this->_defaultFetchMode);
$stmt->setFetchMode($this->defaultFetchMode);
return $stmt;
}
......
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