1000], [['order_no'], 'string', 'max' => 30], [['addons'], 'string', 'max' => 50], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'status' => 'Status', 'amount' => 'Amount', 'remark' => 'Remark', 'type' => 'Type', 'direction' => 'Direction', 'order_no' => 'Order No', ]; } public function getMall() { return $this->hasOne(Mall::class, ['id' => 'mall_id']); } }