Commit 4a020a90 authored by zYne's avatar zYne

--no commit message

--no commit message
parent ee8c1a0a
...@@ -347,19 +347,6 @@ abstract class Doctrine_Hydrate extends Doctrine_Access ...@@ -347,19 +347,6 @@ abstract class Doctrine_Hydrate extends Doctrine_Access
return $coll; return $coll;
} }
/**
* convertBoolean
* converts boolean to integers
*
* @param mixed $item
* @return void
*/
public static function convertBoolean(&$item)
{
if (is_bool($item)) {
$item = (int) $item;
}
}
/** /**
* setParams * setParams
* *
...@@ -378,9 +365,7 @@ abstract class Doctrine_Hydrate extends Doctrine_Access ...@@ -378,9 +365,7 @@ abstract class Doctrine_Hydrate extends Doctrine_Access
public function execute($params = array(), $return = Doctrine::FETCH_RECORD) { public function execute($params = array(), $return = Doctrine::FETCH_RECORD) {
$this->collections = array(); $this->collections = array();
$params = array_merge($this->params, $params); $params = $this->conn->convertBooleans(array_merge($this->params, $params));
array_walk($params, array(__CLASS__, 'convertBoolean'));
if ( ! $this->view) { if ( ! $this->view) {
$query = $this->getQuery($params); $query = $this->getQuery($params);
......
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