Files
mayi-grade/app/rongyu/model/JsRongyuCanyu.php
T
2020-03-26 15:30:17 +08:00

23 lines
409 B
PHP

<?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\renshi\model\Teacher', 'teacher_id', 'id');
}
}