32], [['order_no'], 'string', 'max' => 50], [['response'], 'safe'], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'merchant_no' => 'Merchant No', 'trade_id' => 'Trade ID', 'status' => 'Status', 'updated_at' => 'Updated At', 'created_at' => 'Created At', 'order_no' => 'Order No', 'share_amount' => 'Share Amount', 'fee' => 'Fee', 'store_id' => 'Store ID', 'trx_no' => 'Trx No', ]; } public function getOrder() { return $this->hasOne(Order::class, ['order_no' => 'order_no']); } }