public function createUpdateCommand($data, $where, $parameters = array())
{
$table = $this->getTableInfo()->getTableFullName();
if ($this->hasIntegerKey($parameters)) {
$fields = implode(', ', $this->getColumnBindings($data, true));
} else {
$fields = implode(', ', $this->getColumnBindings($data));
}
if (!empty($where)) {
$where = ' WHERE ' . $where;
}
$command = $this->createCommand("UPDATE {$table} SET {$fields}" . $where);
$this->bindArrayValues($command, array_merge($data, $parameters));
return $command;
}