public function updateAttribute($attrName, $value)
    {
        $this->setAttribute($attrName, $value);
        return $this->save(['skip_validation' => true, 'action' => 'update']);
    }
public function updateAttribute($attrName, $value)
    {
        $this->setAttribute($attrName, $value);
        return $this->save(['skip_validation' => true, 'action' => 'update']);
    }
public function updateAttribute ( $ attrName , $ value ) { $ this -> setAttribute ( $ attrName , $ value ) ; return $ this -> save ( [ 'skip_validation' => true , 'action' => 'update' ] ) ; }
Update single attribute.
Sets a new value for the attribute and saves the record.
Validations are skipped but callbacks are still ran.

@param string $attrName  The name of the attribute.
@param mixed $value      The value for the attribute,
Update single attribute . Sets a new value for the attribute and saves the record . Validations are skipped but callbacks are still ran .