123456789101112131415161718 |
- <?php
- namespace app\admin\model;
- use app\admin\model\Admin;
- use think\Model;
- /**
- */
- class Ad extends \app\common\model\Ad
- {
- public function admin(){
- return $this->belongsTo(Admin::class,'admin_id','id',[],'left');
- }
- public function uploadAdmin(){
- return $this->belongsTo(Admin::class,'upload_admin_id')->setEagerlyType(0);
- }
- }
|