diff --git a/src/Models/DynaModelTrait.php b/src/Models/DynaModelTrait.php index 32d3535..7857b66 100644 --- a/src/Models/DynaModelTrait.php +++ b/src/Models/DynaModelTrait.php @@ -327,7 +327,7 @@ public function findOneBy(array $where = [], bool $reset = true) */ public function updateBy(array $set = null, $where = null, int $limit = null): bool { - return $this->builder->update($set, $where, $limit); + return $this->builder->update($this->doProtectFields($set), $where, $limit); } /**