Commit 2ce1c5f4 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 755f30f6
...@@ -62,7 +62,7 @@ class Doctrine_Hydrate ...@@ -62,7 +62,7 @@ class Doctrine_Hydrate
/** /**
* @var array $params query input parameters * @var array $params query input parameters
*/ */
protected $params = array(); protected $_params = array();
/** /**
* @var Doctrine_Connection $conn Doctrine_Connection object * @var Doctrine_Connection $conn Doctrine_Connection object
*/ */
...@@ -386,7 +386,7 @@ class Doctrine_Hydrate ...@@ -386,7 +386,7 @@ class Doctrine_Hydrate
*/ */
public function getParams() public function getParams()
{ {
return $this->params; return $this->_params;
} }
/** /**
* setParams * setParams
...@@ -394,7 +394,7 @@ class Doctrine_Hydrate ...@@ -394,7 +394,7 @@ class Doctrine_Hydrate
* @param array $params * @param array $params
*/ */
public function setParams(array $params = array()) { public function setParams(array $params = array()) {
$this->params = $params; $this->_params = $params;
} }
public function convertEnums($params) public function convertEnums($params)
{ {
...@@ -445,7 +445,7 @@ class Doctrine_Hydrate ...@@ -445,7 +445,7 @@ class Doctrine_Hydrate
*/ */
public function execute($params = array(), $return = Doctrine::FETCH_RECORD) public function execute($params = array(), $return = Doctrine::FETCH_RECORD)
{ {
$params = $this->_conn->convertBooleans(array_merge($this->params, $params)); $params = $this->_conn->convertBooleans(array_merge($this->_params, $params));
$params = $this->convertEnums($params); $params = $this->convertEnums($params);
if ( ! $this->_view) { if ( ! $this->_view) {
......
...@@ -1133,7 +1133,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable ...@@ -1133,7 +1133,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
$params = array($params); $params = array($params);
} }
// append parameters // append parameters
$params = array_merge($this->params, $params); $params = array_merge($this->_params, $params);
return (int) $this->getConnection()->fetchOne($q, $params); return (int) $this->getConnection()->fetchOne($q, $params);
} }
......
...@@ -54,9 +54,9 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate ...@@ -54,9 +54,9 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate
public function addWhere($where, $params = array()) public function addWhere($where, $params = array())
{ {
if (is_array($params)) { if (is_array($params)) {
$this->params = array_merge($this->params, $params); $this->_params = array_merge($this->_params, $params);
} else { } else {
$this->params[] = $params; $this->_params[] = $params;
} }
return $this->parseQueryPart('where', $where, true); return $this->parseQueryPart('where', $where, true);
} }
...@@ -82,9 +82,9 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate ...@@ -82,9 +82,9 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate
public function addHaving($having, $params = array()) public function addHaving($having, $params = array())
{ {
if (is_array($params)) { if (is_array($params)) {
$this->params = array_merge($this->params, $params); $this->_params = array_merge($this->_params, $params);
} else { } else {
$this->params[] = $params; $this->_params[] = $params;
} }
return $this->parseQueryPart('having', $having, true); return $this->parseQueryPart('having', $having, true);
} }
...@@ -227,11 +227,11 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate ...@@ -227,11 +227,11 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate
*/ */
public function where($where, $params = array()) public function where($where, $params = array())
{ {
$this->params = array(); $this->_params = array();
if (is_array($params)) { if (is_array($params)) {
$this->params = $params; $this->_params = $params;
} else { } else {
$this->params[] = $params; $this->_params[] = $params;
} }
return $this->parseQueryPart('where', $where); return $this->parseQueryPart('where', $where);
...@@ -246,11 +246,11 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate ...@@ -246,11 +246,11 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate
*/ */
public function having($having, $params = array()) public function having($having, $params = array())
{ {
$this->params = array(); $this->_params = array();
if (is_array($params)) { if (is_array($params)) {
$this->params = $params; $this->_params = $params;
} else { } else {
$this->params[] = $params; $this->_params[] = $params;
} }
return $this->parseQueryPart('having', $having); return $this->parseQueryPart('having', $having);
......
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