OrderComment.php 228 B

123456789101112
  1. <?php
  2. namespace app\common\model;
  3. use think\Model;
  4. // 订单评论表
  5. class OrderComment extends Model
  6. {
  7. public function user()
  8. {
  9. return $this->belongsTo('User','user_id','id')->field('id,name,headimg');
  10. }
  11. }