Modify update query to set value of this field.

@param DB_dsql $modify

@return $this
13579
public function updateModifyQuery($modify)
    {
        if ($this->relation) {
            $modify = $this->relation->dsql;
        }

        $modify->set(
            $this->actual_field ?: $this->short_name,
            $this->getSQL()
        );

        return $this;
    }
817086
public function setId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->id !== $v) {
            $this->id = $v;
            $this->modifiedColumns[DealerVersionTableMap::ID] = true;
        }

        if ($this->aDealer !== null && $this->aDealer->getId() !== $v) {
            $this->aDealer = null;
        }


        return $this;
    }
148481
public function modifyQuery(Query $query)
    {
        return $this->queryBuilder->startFrom($query)->useDebug(true)->getQuery();
    }
549356
public function dateModify($modify) {
        $modified = (array) $this->dateTime->modify($modify);
        $date = explode(' ', $modified['date']);

        return $this->setDate($date[0])->parseDate();
    }
1002227
public function setModifyDN($modify_dn) {
		if(!empty($modify_dn)) {
			$this->modify_dn = $modify_dn;
		}
		else
		{
			$this->modify_dn = $this->add_dn;
		}
	}
1179544
public function update($setting, $value){
        if($this->db->update($this->table_config, array('value' => $value), array('setting' => $setting))){
            $this->set($setting, $value);
        }
        return $this;
    }
628496
public function setModified(\DateTime $modified = null)
    {
        $this->_modified = null === $modified ? new \DateTime() : $modified;

        return $this->getContentInstance();
    }
16836
public function isUpdate($update = true, $where = null)
    {
        if (is_bool($update)) {
            $this->exists = $update;

            if (!empty($where)) {
                $this->updateWhere = $where;
            }
        } else {
            $this->exists      = true;
            $this->updateWhere = $update;
        }

        return $this;
    }
259900
public function add($name, $type = 'text', array $options = [], $modify = false)
    {
        $this->formHelper->checkFieldName($name, get_class($this));

        if ($this->rebuilding && !$this->has($name)) {
            return $this;
        }

        $this->addField($this->makeField($name, $type, $options), $modify);

        return $this;
    }
331719
private function modify()
    {
        if ($this->isIndex()) {
            $this->query = $this->modifyIndex($this->query);
        }
        else if ($this->isShow()) {
            $this->query = $this->modifyShow($this->query);
        }
        else if ($this->isDelete()) {
            $this->query = $this->modifyDelete($this->query);
        }
        else if ($this->isUpdate()) {
            $this->query = $this->modifyUpdate($this->query);
        }

        return $this;
    }
202311
function modify (obj, updateQuery) {
  var keys = Object.keys(updateQuery)
    , firstChars = _.map(keys, function (item) { return item[0]; })
    , dollarFirstChars = _.filter(firstChars, function (c) { return c === '$'; })
    , newDoc, modifiers
    ;

  if ((keys.indexOf('_id') !== -1) && (updateQuery._id !== obj._id)) { throw "You cannot change a document's _id"; }

  if ((dollarFirstChars.length !== 0) && (dollarFirstChars.length !== firstChars.length)) {
    throw "You cannot mix modifiers and normal fields";
  }

  if (dollarFirstChars.length === 0) {
    // Simply replace the object with the update query contents
    newDoc = deepCopy(updateQuery);
    newDoc._id = obj._id;
  } else {
    // Apply modifiers
    modifiers = _.uniq(keys);
    newDoc = deepCopy(obj);
    modifiers.forEach(function (m) {
      var keys;

      if (!modifierFunctions[m]) { throw "Unknown modifier " + m; }

      try {
        keys = Object.keys(updateQuery[m]);
      } catch (e) {
        throw "Modifier " + m + "'s argument must be an object";
      }

      keys.forEach(function (k) {
        modifierFunctions[m](newDoc, k, updateQuery[m][k]);
      });
    });
  }

  // Check result is valid and return it
  checkObject(newDoc);
  
  if (obj._id !== newDoc._id) { throw "You can't change a document's _id"; }
  return newDoc;
}
1137664
public function setSql($sql)
    {
        if ('' !== $prefix = $this->db->getPrefix()) {
            $sql = preg_replace('#{{(.*?)}}#', $prefix . '\1', $sql);
        }
        $this->sql = $sql;

        return $this;
    }
514626
public function setQuery(Query $query)
    {
        $this->query = $query;
        $this->clonedQuery = clone $query;

        return $this;
    }
1334587
public function setLastModification($lastModification)
    {
        if ($lastModification instanceof \DateTime) {
            $lastModification = new LastModification($lastModification);
        }
        $this->elements[self::ELEMENT_LASTMOD] = $lastModification;

        return $this;
    }
1110628
public function update($value)
        {
            $this->validate($value);
            if ($this->chaining) {
                $this->chain = $value;
            } else {
                $this->current = $value;
            }
            return $this;
        }
1359960
public function update($table = "")
    {
        if (empty($table)) {
            $table = $this->structure->tableName;
        }

        $this->table = $table;
        $this->queryType = self::QUERY_UPDATE;

        // Determinate the column order
        $this->columnOrder = array();
        foreach ($this->structure->columns as $column) {
            $this->columnOrder[] = $column;
        }

        return $this;
    }
473293
public function setProperties($properties, $modified = true)
    {
        if ($properties instanceof KModelEntityInterface) {
            $properties = $properties->getProperties(false);
        } else {
            $properties = (array) $properties;
        }

        foreach ($properties as $property => $value) {
            $this->setProperty($property, $value, $modified);
        }

        return $this;
    }