一对一关联
public function getGoodName(){
return $this->belongsTo('app\api\model\goods\Good','goods_good_id','id', [], 'LEFT')->setEagerlyType(0);
}
以少查多
public function getGoodName(){
return $this->belongsTo('app\api\model\goods\Good','goods_good_id','id');
}