user card level required

This commit is contained in:
andrey 2021-07-07 16:39:51 +03:00
parent 0d113a60fd
commit e61c45791e

View File

@ -94,7 +94,7 @@ class UserCard extends \yii\db\ActiveRecord
public function rules()
{
return [
[['fio', 'status', 'gender', 'email'], 'required'],
[['fio', 'status', 'gender', 'email', 'level'], 'required'],
[['gender', 'status', 'position_id', 'id_user', 'level'], 'integer'],
[['dob', 'created_at', 'updated_at', 'deleted_at', 'vc_text'], 'safe'],
[['fio', 'passport', 'photo', 'email', 'resume', 'city', 'link_vk', 'link_telegram'], 'string', 'max' => 255],