[['number', 'email'], 'required', 'when' => function($model) {
if($model->email == '' && $model->number ==''){
return false;
} else {
return true;
}
}, 'enableClientValidation' => false],
[['number', 'email'], 'required', 'when' => function($model) {
return ($model->email == '' && $model->number =='');
}, 'enableClientValidation' => false],