| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <?php
- namespace common\models;
- use common\components\MongoActiveRecord;
- use Yii;
- /**
- * This is the model class for collection "ar_approach_order_call".
- *
- * @property \MongoDB\BSON\ObjectID|string $_id
- * @property mixed $id
- * @property mixed $domain
- * @property mixed $status
- * @property mixed $reference
- * @property mixed $amount
- * @property mixed $created_at
- * @property mixed $paid_at
- * @property mixed $channel
- * @property mixed $currency
- * @property mixed $ip_address
- * @property mixed $metadata
- * @property mixed $return_result
- * @property mixed $customer
- * @property mixed $email
- */
- class ApproachOrderCall extends MongoActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function collectionName()
- {
- return 'ar_approach_order_call';
- }
- /**
- * @return \yii\mongodb\Connection the MongoDB connection used by this AR class.
- */
- public static function getDb()
- {
- return Yii::$app->get('dbLog');
- }
- /**
- * 获取id
- * @return string
- */
- public function getId() {
- return (string) $this->_id;
- }
- /**
- * {@inheritdoc}
- */
- public function attributes()
- {
- return [
- 'id',
- 'domain',
- 'status',
- 'reference',
- 'amount',
- 'created_at',
- 'paid_at',
- 'channel',
- 'currency',
- 'ip_address',
- 'metadata',
- 'return_result',
- 'customer',
- 'email',
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'PayID',
- 'domain' => 'domain',
- 'status' => 'status',
- 'reference' => 'reference',
- 'amount' => 'amount(kobo)',
- 'created_at' => 'created_at',
- 'paid_at' => 'paid_at',
- 'channel' => 'channel',
- 'currency' => 'currency',
- 'ip_address' => 'ip_address',
- 'metadata' => 'metadata',
- 'return_result' => 'return_result',
- 'customer' => 'customer',
- 'email' => 'email',
- ];
- }
- }
|