This commit is contained in:
parent
ee8c1a0a6d
commit
4a020a90fe
@ -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
|
|||||||
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user