Files
mayi-grade/app/keti/model/KetiCanyu.php
T
2020-12-18 15:17:33 +08:00

22 lines
373 B
PHP
Executable File

<?php
namespace app\keti\model;
use app\BaseModel;
class KetiCanyu extends BaseModel
{
// 课题册关联
public function keti()
{
return $this->belongsTo('\app\keti\model\Keti', 'ketiinfo_id', 'id');
}
// 教师关联
public function teacher()
{
return $this->belongsTo('\app\teacher\model\Teacher', 'teacher_id', 'id');
}
}