ApproachOrderCall.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. namespace common\models;
  3. use common\components\MongoActiveRecord;
  4. use Yii;
  5. /**
  6. * This is the model class for collection "ar_approach_order_call".
  7. *
  8. * @property \MongoDB\BSON\ObjectID|string $_id
  9. * @property mixed $event
  10. * @property mixed $data
  11. */
  12. class ApproachOrderCall extends MongoActiveRecord
  13. {
  14. /**
  15. * {@inheritdoc}
  16. */
  17. public static function collectionName()
  18. {
  19. return 'ar_approach_order_call';
  20. }
  21. /**
  22. * @return \yii\mongodb\Connection the MongoDB connection used by this AR class.
  23. */
  24. public static function getDb()
  25. {
  26. return Yii::$app->get('dbLog');
  27. }
  28. /**
  29. * 获取id
  30. * @return string
  31. */
  32. public function getId() {
  33. return (string) $this->_id;
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function attributes()
  39. {
  40. return [
  41. '_id',
  42. 'event',
  43. 'data',
  44. ];
  45. }
  46. /**
  47. * {@inheritdoc}
  48. */
  49. public function attributeLabels()
  50. {
  51. return [
  52. '_id' => '_id',
  53. 'event' => 'event',
  54. 'data' => 'data',
  55. ];
  56. }
  57. }