Files
mayi-grade/application/rongyu/model/JsRongyuCanyu.php
T

24 lines
450 B
PHP

<?php
namespace app\rongyu\model;
use think\Model;
class JsRongyuCanyu extends Model
{
// 关闭全局自动时间戳
protected $autoWriteTimestamp = false;
// 荣誉册关联
public function rongyu()
{
return $this->belongsTo('\app\rongyu\model\JsRongyu','rongyuid','id');
}
// 教师关联
public function teacher()
{
return $this->belongsTo('\app\renshi\model\Teacher','teacherid','id');
}
}