public function set($field, $value = UNDEFINED)
    {
        if ($value === false) {
            throw $this->exception('Value "false" is not supported by SQL')
                ->addMoreInfo('field', $field);
        }
        if (is_array($field)) {
            foreach ($field as $key => $value) {
                $this->set($key, $value);
            }

            return $this;
        }

        if ($value === UNDEFINED) {
            throw $this->exception('Specify value when calling set()');
        }

        $this->args['set'][$field] = $value;

        return $this;
    }
public function set($field, $value = UNDEFINED)
    {
        if ($value === false) {
            throw $this->exception('Value "false" is not supported by SQL')
                ->addMoreInfo('field', $field);
        }
        if (is_array($field)) {
            foreach ($field as $key => $value) {
                $this->set($key, $value);
            }

            return $this;
        }

        if ($value === UNDEFINED) {
            throw $this->exception('Specify value when calling set()');
        }

        $this->args['set'][$field] = $value;

        return $this;
    }
public function set ( $ field , $ value = UNDEFINED ) { if ( $ value === false ) { throw $ this -> exception ( 'Value "false" is not supported by SQL' ) -> addMoreInfo ( 'field' , $ field ) ; } if ( is_array ( $ field ) ) { foreach ( $ field as $ key => $ value ) { $ this -> set ( $ key , $ value ) ; } return $ this ; } if ( $ value === UNDEFINED ) { throw $ this -> exception ( 'Specify value when calling set()' ) ; } $ this -> args [ 'set' ] [ $ field ] = $ value ; return $ this ; }
Sets field value for INSERT or UPDATE statements.

@param string $field Name of the field
@param mixed  $value Value of the field

@return $this
Sets field value for INSERT or UPDATE statements .