TagMap.php 766 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace common\models\member;
  3. use Yii;
  4. use common\traits\HasOneMember;
  5. /**
  6. * This is the model class for table "{{%member_tag_map}}".
  7. *
  8. * @property int $tag_id 标签id
  9. * @property int $member_id 会员id
  10. */
  11. class TagMap extends \yii\db\ActiveRecord
  12. {
  13. use HasOneMember;
  14. /**
  15. * {@inheritdoc}
  16. */
  17. public static function tableName()
  18. {
  19. return '{{%member_tag_map}}';
  20. }
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public function rules()
  25. {
  26. return [
  27. [['tag_id', 'member_id'], 'integer'],
  28. ];
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function attributeLabels()
  34. {
  35. return [
  36. 'tag_id' => '标签ID',
  37. 'member_id' => '会员ID',
  38. ];
  39. }
  40. }
粤ICP备19079148号