<?php namespace app\api\model; use think\Model; class OrderAddress extends Model { protected $name = 'order_address'; public function order() { return $this->belongsTo('order','o_id','o_id'); } }