Override parent set() method.

@param string $attribute
@param mixed  $value
488517
public function set($attribute, $value = null)
    {
        parent::set($this->getRealKey($attribute), $value);
    }
334868
public function setAttribute($attribute, $value): Compound
    {
        if ($attribute !== 'link') {
            $this->attributes[$attribute] = $value;
        } else {
            $this->isLink = true;
            $this->link = $value;
        }

        return $this;
    }
531529
public function setAttribute($name, $value)
    {
        if (empty($value)) {
            $this->node->removeAttribute($name);
        } else {
            $this->node->setAttribute($name, $value);
        }

        return $this;
    }
1110799
public function setAttribute(string $key, string $value)
    {
        if ($this->valid($key, $value)) {
            $value = encrypt($value);
        }

        return parent::setAttribute($key, $value);
    }
999000
public function attribute($attribute, $value = null)
    {
        $element = clone $this;

        $element->attributes->setAttribute($attribute, (string) $value);

        return $element;
    }
354671
public function addAttributeValue(string $attribute, string $value = ''): self
    {
        // Retrieve the current values of the attribute
        $values = $this->getAttribute($attribute);

        // Merge the values
        if (! in_array($value, $values)) {
            $values[] = $value;
        }

        // Store the new values
        $this->setAttribute($attribute, $values);

        return $this;
    }
929146
public function setAttribute($key, $value)
	{
		// Hash required fields when necessary
		if (in_array($key, $this->hashableAttributes) and ! empty($value))
		{
			$value = $this->hash($value);
		}

		return parent::setAttribute($key, $value);
	}
508371
public function setTableAttribute($attribute, $value = null)
    {
        if (is_array($attribute)) {
            return $this->setTableAttributes($attribute);
        }

        $this->tableAttributes[$attribute] = $value;

        return $this;
    }
776719
public function addCustomField($attribute, $value)
    {
        if ($this->customFields === null) {
            $this->customFields = array();
        }
        $this->customFields[$attribute] = $value;
    }
722763
public function setValueIfAttributeExists($attribute, $value)
    {
        if ($this->hasAttribute($attribute)) {
            $currentValue = $this->getAttribute('value');

            $this->setAttribute('value', $currentValue + $value);
        }
    }
943188
public function setAttribute($key, $value)
    {
        foreach (static::$setter_manipulators as $manipulator) {
            $value = $manipulator($this, $key, $value);
        }

        parent::setAttribute($key, $value);
    }
1306626
public function setAttribute($attribute, $value)
    {
        switch($attribute){

            case Core::ATTR_AUTO_ACCESSOR_OVERRIDE:
            case Core::ATTR_AUTO_FREE_QUERY_OBJECTS:
            case Core::ATTR_AUTOCOMMIT:
            case Core::ATTR_AUTOLOAD_TABLE_CLASSES:
            case Core::ATTR_CACHE:
            case Core::ATTR_CACHE_LIFESPAN:
            case Core::ATTR_CASCADE_SAVES:
            case Core::ATTR_CASE:
            case Core::ATTR_CLIENT_VERSION:
            case Core::ATTR_CMPNAME_FORMAT:
            case Core::ATTR_COLL_KEY:
            case Core::ATTR_COLL_LIMIT:
            case Core::ATTR_COLLECTION_CLASS:
            case Core::ATTR_CONNECTION_STATUS:
            case Core::ATTR_CREATE_TABLES:
            case Core::ATTR_CURSOR:
            case Core::ATTR_CURSOR_NAME:
            case Core::ATTR_DBNAME_FORMAT:
            case Core::ATTR_DECIMAL_PLACES:
            case Core::ATTR_DEF_TABLESPACE:
            case Core::ATTR_DEF_TEXT_LENGTH:
            case Core::ATTR_DEF_VARCHAR_LENGTH:
            case Core::ATTR_DEFAULT_COLUMN_OPTIONS:
            case Core::ATTR_DEFAULT_IDENTIFIER_OPTIONS:
            case Core::ATTR_DEFAULT_PARAM_NAMESPACE:
            case Core::ATTR_DEFAULT_SEQUENCE:
            case Core::ATTR_DEFAULT_TABLE_CHARSET:
            case Core::ATTR_DEFAULT_TABLE_COLLATE:
            case Core::ATTR_DEFAULT_TABLE_TYPE:
            case Core::ATTR_DRIVER_NAME:
            case Core::ATTR_EMULATE_DATABASE:
            case Core::ATTR_ERRMODE:
            case Core::ATTR_EXPORT:
            case Core::ATTR_FETCH_CATALOG_NAMES:
            case Core::ATTR_FETCH_TABLE_NAMES:
            case Core::ATTR_FETCHMODE:
            case Core::ATTR_FIELD_CASE:
            case Core::ATTR_FKNAME_FORMAT:
            case Core::ATTR_HYDRATE_OVERWRITE:
            case Core::ATTR_IDXNAME_FORMAT:
            case Core::ATTR_LISTENER:
            case Core::ATTR_LOAD_REFERENCES:
            case Core::ATTR_MAX_COLUMN_LEN:
            case Core::ATTR_MAX_IDENTIFIER_LENGTH:
            case Core::ATTR_MODEL_CLASS_PREFIX:
            case Core::ATTR_MODEL_LOADING:
            case Core::ATTR_NAME_PREFIX:
            case Core::ATTR_ORACLE_NULLS:
            case Core::ATTR_PERSISTENT:
            case Core::ATTR_PORTABILITY:
            case Core::ATTR_PREFETCH:
            case Core::ATTR_QUERY_CACHE:
            case Core::ATTR_QUERY_CACHE_LIFESPAN:
            case Core::ATTR_QUERY_CLASS:
            case Core::ATTR_QUERY_LIMIT:
            case Core::ATTR_QUOTE_IDENTIFIER:
            case Core::ATTR_RECORD_LISTENER:
            case Core::ATTR_RECURSIVE_MERGE_FIXTURES:
            case Core::ATTR_RESULT_CACHE:
            case Core::ATTR_RESULT_CACHE_LIFESPAN:
            case Core::ATTR_SEQCOL_NAME:
            case Core::ATTR_SEQNAME_FORMAT:
            case Core::ATTR_SERVER_INFO:
            case Core::ATTR_SERVER_VERSION:
            case Core::ATTR_STATEMENT_CLASS:
            case Core::ATTR_STRINGIFY_FETCHES:
            case Core::ATTR_TABLE_CLASS:
            case Core::ATTR_TABLE_CLASS_FORMAT:
            case Core::ATTR_TBLCLASS_FORMAT:
            case Core::ATTR_TBLNAME_FORMAT:
            case Core::ATTR_THROW_EXCEPTIONS:
            case Core::ATTR_TIMEOUT:
            case Core::ATTR_USE_DQL_CALLBACKS:
            case Core::ATTR_USE_NATIVE_ENUM:
            case Core::ATTR_USE_NATIVE_SET:
            case Core::ATTR_VALIDATE:
                $this->attributes[$attribute] = $value;
                break;

            default:
                throw new Exception("Invalid attribute '{$attribute}'! Must be one of Core::ATTR_* constants.");
        }
    }
949180
private function updateAttribute($attribute, $value)
    {
        if (property_exists($this, $attribute)) {
            $this->$attribute = $value;
        }

        return $this;
    }
235215
public function setAttribute($key, $value)
    {
        $key = snake_case($key);
        $value = empty($value) ? null : $value;
        $value = is_string($value)? trim($value) : $value;
        return parent::setAttribute($key, $value);
    }
1301590
public function setAttribute($attribute, $value): bool
    {
        $this->connect();

        return $this->pdo->setAttribute($attribute, $value);
    }
272726
public function setAttribute($attribute, $value = null)
    {
        if (is_array($attribute)) {
            $this->attributes = array_merge_recursive($this->attributes, $attribute);

            return $this;
        }

        if (is_array($value)) {
            $old = $this->attributes[$attribute] ?? [];
            $this->attributes[$attribute] = array_merge((array) $old, $value);
        } else {
            $this->attributes[$attribute] = $value;
        }

        return $this;
    }
39557
public function setAttribute($name, $attribute, $value)
    {
        $this->getField($name)->setAttribute($attribute, $value);
    }