diff --git a/src/Database/Model.php b/src/Database/Model.php index 6327812..fa3a0cf 100644 --- a/src/Database/Model.php +++ b/src/Database/Model.php @@ -97,14 +97,16 @@ * * @param string $key Target column to update * @param mixed $value New value of target column - * @return bool Update was successful + * @return mixed The value that was sent to $value */ - public function set(string $key, mixed $value): bool { + public function set(string $key, mixed $value): mixed { $this->_row[$key] = $value; - return $this->db + $this->db ->from($this->table) ->where($this->where) ->update([$key => $value]); + + return $value; } }