public function setAttribute($key, $value)
    {
        parent::setAttribute($key, $value); // TODO: Change the autogenerated stub

        if (isset($this->attributes[$key]) && is_string($this->attributes[$key]) && strlen($this->attributes[$key]) === 0) {
            $this->attributes[$key] = null;
        }

        return $this;
    }