src/SweetORM/Database/QueryGenerator.php
public function generateUpdate($changeData, &$data, &$values, &$types)
    {
        // Prepare
        $data = "";

        // Generate the column definition
        $idx = 0;
        $max = count($changeData);
        foreach ($changeData as $column => $value) {
            // Prepare set part
            $data .= "$column = ?";
            $values[] = $this->prepareData($value);
            $types[] = $this->determinateType($value);

            // Adding ,
            if (($idx + 1) < $max) {
                $data .= ",";
            }

            $idx++;
        }
    }
public function generateUpdate($changeData, &$data, &$values, &$types)
    {
        // Prepare
        $data = "";

        // Generate the column definition
        $idx = 0;
        $max = count($changeData);
        foreach ($changeData as $column => $value) {
            // Prepare set part
            $data .= "$column = ?";
            $values[] = $this->prepareData($value);
            $types[] = $this->determinateType($value);

            // Adding ,
            if (($idx + 1) < $max) {
                $data .= ",";
            }

            $idx++;
        }
    }
public function generateUpdate ( $ changeData , & $ data , & $ values , & $ types ) { // Prepare $ data = "" ; // Generate the column definition $ idx = 0 ; $ max = count ( $ changeData ) ; foreach ( $ changeData as $ column => $ value ) { // Prepare set part $ data .= "$column = ?" ; $ values [ ] = $ this -> prepareData ( $ value ) ; $ types [ ] = $ this -> determinateType ( $ value ) ; // Adding , if ( ( $ idx + 1 ) < $ max ) { $ data .= "," ; } $ idx ++ ; } }
Generate Update Lines

@param array $changeData
@param string $data Reference: Data (set) line
@param array $values Reference: Bind values
@param array $types Reference: Bind types
Generate Update Lines