From 4a020a90fe34e7121411a11ac37c937452cb9545 Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 15 Feb 2007 11:41:00 +0000 Subject: [PATCH] --- lib/Doctrine/Hydrate.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/lib/Doctrine/Hydrate.php b/lib/Doctrine/Hydrate.php index 94ed25c9d..512b31dc5 100644 --- a/lib/Doctrine/Hydrate.php +++ b/lib/Doctrine/Hydrate.php @@ -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);