src/Entity/Entity.php
public function &setAttribute($attribute, $value)
    {
        if (in_array($attribute, $this->getAttributes())) {
            $setter = $this->getAttributeSetter($attribute);

            if (method_exists($this, $setter)) {
                $this->$setter($value);
            }
        } else {
            $this->triggerEvent('on_set_attribute', [$attribute, $value]);
        }

        return $this;
    }
public function &setAttribute($attribute, $value)
    {
        if (in_array($attribute, $this->getAttributes())) {
            $setter = $this->getAttributeSetter($attribute);

            if (method_exists($this, $setter)) {
                $this->$setter($value);
            }
        } else {
            $this->triggerEvent('on_set_attribute', [$attribute, $value]);
        }

        return $this;
    }
Set non-field value during DataManager::create() and DataManager::update() calls.

@param  string $attribute
@param  mixed  $value
@return $this