OrderAddress.php 221 B

12345678910111213
  1. <?php
  2. namespace app\api\model;
  3. use think\Model;
  4. class OrderAddress extends Model
  5. {
  6. protected $name = 'order_address';
  7. public function order()
  8. {
  9. return $this->belongsTo('order','o_id','o_id');
  10. }
  11. }