ApproachOrderCall.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. 'data',
  43. ];
  44. }
  45. /**
  46. * {@inheritdoc}
  47. */
  48. public function attributeLabels()
  49. {
  50. return [
  51. 'event' => 'event',
  52. 'data' => 'data',
  53. ];
  54. }
  55. }