Skip to content
Permalink
Browse files

Add "prevent validators mutating data" to design decisions

  • Loading branch information...
samdark committed Oct 24, 2019
1 parent fb3f9de commit 7f0b3752dc113b6ccb83514cb29f631dd66f763c
Showing with 7 additions and 0 deletions.
  1. +7 −0 009-design-decisions.md
@@ -76,3 +76,10 @@ Yii 2 has its own versioning policy. Problems:
- Composer rely on SemVer
- It is hard to maintain framework built on top of packages if versioning policy
isn't strict

## Prevent validators mutating data

In Yii 1 and Yii 2 validators such as "date" were mutating data. It was confusing for validation process that was
not initially meant to mutate data it validates.

[See related discussion](https://forum.yiiframework.com/t/saving-or-killing-non-validation-in-validators/126086).

0 comments on commit 7f0b375

Please sign in to comment.
You can’t perform that action at this time.