Welcome Guest, Not a member yet? Register   Sign In
Create Model with command line
#5

(This post was last modified: 09-25-2022, 02:24 PM by kenjis.)

If $cleanValidationRules is true, the validation rules for the field that is not contained in the passed data will be removed before validation.

But it does not seems to work if you don't call validate() by yourself.
If you call insert() or update() or save(), the $cleanValidationRules value will be changed automatically.
I'm not sure this is a bug or not.

Anyway, it is a feature in Model, not in the Validation library.
Reply


Messages In This Thread
RE: Create Model with command line - by InsiteFX - 09-25-2022, 12:37 AM
RE: Create Model with command line - by kenjis - 09-25-2022, 01:08 AM
RE: Create Model with command line - by kenjis - 09-25-2022, 02:20 PM
RE: Create Model with command line - by kenjis - 09-25-2022, 10:40 PM
RE: Create Model with command line - by kenjis - 09-26-2022, 12:12 AM
RE: Create Model with command line - by InsiteFX - 09-26-2022, 01:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB