Skip to content

Commit

Permalink
protec fields on update
Browse files Browse the repository at this point in the history
  • Loading branch information
arif-rh committed Aug 2, 2020
1 parent bd36c0f commit 3695eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/DynaModelTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 3695eb2

Please sign in to comment.