1
0
mirror of synced 2025-01-18 22:41:43 +03:00
This commit is contained in:
zYne 2007-02-15 11:41:00 +00:00
parent ee8c1a0a6d
commit 4a020a90fe

View File

@ -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);