there is a User model
here's the rule
public function rules() { return [ ['username', 'required'], //['username', 'match', 'pattern' => '#^(p{L}|p{Zs}|p{N}|,|-|_ | |)+$#i'], ['username', 'unique', 'targetClass' => self::className(), 'message' => 'This username has already been taken.'], ['username', 'string', 'min' => 2, 'max' => 255], ['email', 'required'], ['email', 'email'], ['email', 'unique', 'targetClass' => self::className(), 'message' => 'This email address has already been taken.'], ['email', 'string', 'max' => 255], ['status', 'integer'], ['status', 'default', 'value' => self::STATUS_ACTIVE], ['status', 'in', 'range' => array_keys(self::getStatusesArray())], ]; }
there is a need to allow the user to change only the nick question, and how, in this case, disable the email check because the model is not validated due to the fact that either the email is not unique or it needs to be filled out?