1
0
mirror of synced 2025-01-18 22:41:43 +03:00
This commit is contained in:
zYne 2007-08-14 20:23:02 +00:00
parent 201c6b8194
commit 5a976de3f4

View File

@ -211,14 +211,20 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate
*/
public function set($key, $value, $params = null)
{
if ($params !== null) {
if (is_array($params)) {
$this->_params = array_merge($this->_params, $params);
} else {
$this->_params[] = $params;
if (is_array($key)) {
foreach ($key as $k => $v) {
$this->set($k, '?', array($v));
}
} else {
if ($params !== null) {
if (is_array($params)) {
$this->_params = array_merge($this->_params, $params);
} else {
$this->_params[] = $params;
}
}
return $this->parseQueryPart('set', $key . ' = ' . $value, true);
}
return $this->parseQueryPart('set', $key . ' = ' . $value, true);
}
/**
* from