'ID', 'mall_id' => 'Mall ID', 'goods_id' => 'Goods ID', 'is_quick_shop' => '是否快速购买', 'is_sell_well' => '是否热销', 'is_negotiable' => '是否面议商品', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'deleted_at' => 'Deleted At', 'is_delete' => 'Is Delete', ]; } public function getGoods() { return $this->hasOne(Goods::className(), ['id' => 'goods_id']); } public function getGoodsWarehouse() { return $this->hasOne(GoodsWarehouse::className(), ['id' => 'goods_warehouse_id']) ->via('goods'); } }