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
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
*
......@@ -378,9 +365,7 @@ abstract class Doctrine_Hydrate extends Doctrine_Access
public function execute($params = array(), $return = Doctrine::FETCH_RECORD) {
$this->collections = array();
$params = array_merge($this->params, $params);
array_walk($params, array(__CLASS__, 'convertBoolean'));
$params = $this->conn->convertBooleans(array_merge($this->params, $params));
if ( ! $this->view) {
$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