| 123456789101112131415161718192021222324 |
- <?php
- namespace app\common\model;
- class OrderPaymentModel extends BaseModel
- {
- protected $table = 'erp_order_payment';
- public function paymentChannel() {
- return $this->hasOne(PaymentChannelModel::class,'id', 'channel_id');
- }
- public function cardConfig() {
- return $this->hasOne(CreditCardConfigModel::class,'id', 'channel_credit_card_config_id');
- }
- protected function genSchema(array $schema)
- {
- // TODO: Implement genSchema() method.
- }
- }
|