belongsTo('app\common\model\wms\Goods', 'GOODSID', 'GOODSID', [], 'LEFT')->setEagerlyType(0); } public function box(){ return $this->belongsTo('app\common\model\wms\Box', 'STOCKID', 'STOCKID', [], 'LEFT')->setEagerlyType(0); } public function store(){ return $this->belongsTo('app\common\model\wms\Warestore', 'WARESTOREID', 'ID', [], 'LEFT')->setEagerlyType(0); } }