安徽博创起重服务端程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
479 B

<?php
namespace app\common\model\complain;
use app\common\basics\Models;
use app\common\model\user\User;
class Complain extends Models
{
/**
* @Notes: 关联分类模型
* @Author:
*/
public function category()
{
return $this->hasOne('ComplainCategory', 'id', 'cid');
}
/**
* @Notes: 关联用户模型
* @Author:
*/
public function user()
{
return $this->hasOne(User::class, 'id', 'uid');
}
}