128], [['desc'], 'string', 'max' => 255], [['title', 'number'], 'string', 'max' => 50], [['coach_photo', 'qualification'], 'string', 'max' => 2048], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mobile_phone' => '教练手机号', 'title' => '头衔', 'content' => '教练介绍', 'coache_begin_time' => '开始执教时间', 'coach_photo' => '教练照片', 'qualification' => '资格证书', 'status' => '状态 1-正常 0-关闭', 'store_id' => '门店ID', 'created_at' => '添加时间', 'updated_at' => '修改时间', 'is_delete' => '是否删除,0=否,1=是', 'deleted_at' => '删除时间', 'number' => '教练编号', 'user_id' => '用户id', 'status_review' => '审核状态', 'status_desc' => '审核建议', 'status_time' => '审核时间', 'desc' => '教练简介', ]; } public function getUser() { return $this->hasOne(User::className(), ['id' => 'user_id'])->where(['is_delete' => 0]); } }