Files
mayi-grade/app/rongyu/model/JsRongyuCanyu.php
T
2021-02-23 13:56:04 +08:00

23 lines
406 B
PHP
Executable File

<?php
namespace app\rongyu\model;
// 引用数据模型类
use app\BaseModel;
class JsRongyuCanyu extends BaseModel
{
// 荣誉册关联
public function rongyu()
{
return $this->belongsTo('\app\rongyu\model\JsRongyu', 'rongyu_id', 'id');
}
// 教师关联
public function teacher()
{
return $this->belongsTo('\app\admin\model\Admin', 'teacher_id', 'id');
}
}