CommentInfo.php 874 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%comment_info}}".
  6. *
  7. * @property string $entity
  8. * @property integer $entity_id
  9. * @property integer $status
  10. * @property integer $total
  11. */
  12. class CommentInfo extends \yii\db\ActiveRecord
  13. {
  14. /**
  15. * @inheritdoc
  16. */
  17. public static function tableName()
  18. {
  19. return '{{%comment_info}}';
  20. }
  21. /**
  22. * @inheritdoc
  23. */
  24. public function rules()
  25. {
  26. return [
  27. [['entity_id', 'status', 'total'], 'integer'],
  28. [['entity'], 'string', 'max' => 80],
  29. ];
  30. }
  31. /**
  32. * @inheritdoc
  33. */
  34. public function attributeLabels()
  35. {
  36. return [
  37. 'entity' => 'Entity Class',
  38. 'entity_id' => 'Entity ID',
  39. 'status' => 'Status',
  40. 'total' => 'Total',
  41. ];
  42. }
  43. }