Add the "updated at" column to an array of values.

@param  array  $values
@return array
481983
protected function addUpdatedAtColumn(array $values)
    {
        if (! $this->model->usesTimestamps() ||
            is_null($this->model->getUpdatedAtColumn())) {
            return $values;
        }

        $column = $this->model->getUpdatedAtColumn();

        $values = array_merge(
            [$column => $this->model->freshTimestampString()],
            $values
        );

        $values[$this->qualifyColumn($column)] = $values[$column];

        unset($values[$column]);

        return $values;
    }
1161978
public function update(array $values): ResultInterface
    {
        $this->update       = $this->getTableName();
        $this->updateValues = $values;

        return $this->execute();
    }
111241
protected function _getCompoundIdColumnValuesArray($values)
        {
            $filtered = [];

            foreach($values as $value) {
                $filtered[] = $this->_getCompoundIdColumnValues($value);
            }

            return $filtered;
        }
307524
public function update(array $values) {
		$sql = $this->buildUpdateSQL($values);
		$params = $this->getParameters();
		return $this->db->query($sql, $params)->affected();
	}
80593
public function batchValues(array $values){
        ValuesImpl::batchValues($this->context, $values);
        return new OnDuplicateKeyUpdateRule($this->context);
    }
1029937
public function insert(array $values)
    {
        $this->compileWheres();
        $result = $this->query->insert($values);

        return 0 == (int) $result['errors'];
    }
206442
public function set(array $values)
    {
        foreach ($values as $column => &$value) {
            $value = [
                'alias'  => self::cutAlias($column),
                'column' => $column,
                'value'  => $value,
            ];
        }

        $this->values = $this->values === null ? $values : array_replace($this->values, $values);

        return $this;
    }
1211280
public function setValues($values=array()) {
		return $this->_addOrSetValues($values, function(HtmlTR $row,$_values){$row->setValues($_values);});
	}
429510
public function update(array $values)
    {
        $result = parent::update($values);

        $this->handler->setBuilder($this)
            ->invalidateQuery(Reflector::QUERY_TYPE_UPDATE, $values);

        return $result;
    }
1336380
public function setValues($values=array()) {
		return $this->_addOrSetValues($values, function(HtmlTD &$cell,$value){$cell->setValue($value);});
	}
479783
public function setFromArray(array $values) {
        foreach ($values as $key => $val) {
            $this->set($key, $val);
        }
        return $this;
    }
1082825
public function setAllValues(array $values)
    {
        foreach ($values as $key => $value) {
            $this->$key = $value;
        }

        return $this;
    }
213590
public function update(array $values)
	{
		$bindings = array_values(array_merge($values, $this->bindings));

		$sql = $this->grammar->compileUpdate($this, $values);

		return $this->connection->update($sql, $this->cleanBindings($bindings));
	}
596098
public function setMultiple(array $values)
    {
        foreach ($values as $column => $value) {
            $this->set($column, $value);
        }

        return $this;
    }
243125
public function setValues(array $values)
    {
        $this->values = array();
        foreach ($values as $value) {
            $this->addValue($value);
        }
        return $this;
    }
541487
public function setResults(array $values)
    {
        foreach ($values as $field => $value) {
            if (empty($value)) {
                continue;
            }
            $this->setResult($field, $value);
        }

        return $this;
    }
363517
public function insert(array $values = []): array
	{
		$sql = $this->query->getPrefix();

		if(empty($values))
		{
			$sql .= $this->insertWithoutValues();
		}
		else
		{
			$sql .= $this->insertWithValues($values);
		}

		return ['sql' => $sql, 'params' => $this->params];
	}