src/mako/database/query/compilers/Compiler.php
protected function updateColumns(array $columns): string
	{
		$pieces = [];

		foreach($columns as $column => $value)
		{
			$param = $this->param($value);

			if($this->hasJsonPath($column))
			{
				$segments = explode(static::JSON_PATH_SEPARATOR, $column);

				$column = $this->escapeColumn(array_shift($segments));

				$pieces[] = $this->buildJsonSet($column, $segments, $param);
			}
			else
			{
				$pieces[] = $this->escapeColumn($column) . ' = ' . $param;
			}
		}

		return implode(', ', $pieces);
	}
protected function updateColumns(array $columns): string
	{
		$pieces = [];

		foreach($columns as $column => $value)
		{
			$param = $this->param($value);

			if($this->hasJsonPath($column))
			{
				$segments = explode(static::JSON_PATH_SEPARATOR, $column);

				$column = $this->escapeColumn(array_shift($segments));

				$pieces[] = $this->buildJsonSet($column, $segments, $param);
			}
			else
			{
				$pieces[] = $this->escapeColumn($column) . ' = ' . $param;
			}
		}

		return implode(', ', $pieces);
	}
protected function updateColumns ( array $ columns ) : string { $ pieces = [ ] ; foreach ( $ columns as $ column => $ value ) { $ param = $ this -> param ( $ value ) ; if ( $ this -> hasJsonPath ( $ column ) ) { $ segments = explode ( static :: JSON_PATH_SEPARATOR , $ column ) ; $ column = $ this -> escapeColumn ( array_shift ( $ segments ) ) ; $ pieces [ ] = $ this -> buildJsonSet ( $ column , $ segments , $ param ) ; } else { $ pieces [ ] = $ this -> escapeColumn ( $ column ) . ' = ' . $ param ; } } return implode ( ', ' , $ pieces ) ; }
Compiles update columns.

@param  array  $columns Associative array of columns and values
@return string
Compiles update columns .