| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?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 $event
- * @property mixed $data
- */
- 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',
- 'event',
- 'data',
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'event' => 'event',
- 'data' => 'data',
- ];
- }
- }
|