255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'order_id' => 'Order ID', 'goods_id' => 'Goods ID', 'num' => 'Num', 'total_price' => 'Total Price', 'addtime' => 'Addtime', 'is_delete' => 'Is Delete', 'attr' => 'Attr', 'pic' => 'Pic', 'pay_integral' => 'Pay Integral', 'goods_name' => 'goods_name', 'user_id' => 'user_id', 'store_id' => 'store_id', ]; } public function getOrder() { return $this->hasOne(IntegralOrder::className(), ['id'=>'order_id']); } public function getGoods() { return $this->hasOne(IntegralGoods::className(), ['id'=>'goods_id']); } }