1234567891011121314151617 |
- <?php
- namespace app\api\model;
- use think\Model;
- class OrderCommodityModel extends Model
- {
- protected $name = 'order_commodity';
- public function order()
- {
- return $this->belongsTo('order','o_id','o_id');
- }
- public function Commodity()
- {
- return $this->belongsTo('CommodityModel','c_id','c_id');
- }
- }
|