EntityGroupRelUser.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. use Doctrine\ORM\Mapping as ORM;
  3. /**
  4. * EntityGroupRelUser
  5. *
  6. * @Table(name="group_rel_user")
  7. * @Entity
  8. */
  9. class EntityGroupRelUser
  10. {
  11. /**
  12. * @var integer
  13. *
  14. * @Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  15. * @Id
  16. * @GeneratedValue(strategy="IDENTITY")
  17. */
  18. private $id;
  19. /**
  20. * @var integer
  21. *
  22. * @Column(name="group_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  23. */
  24. private $groupId;
  25. /**
  26. * @var integer
  27. *
  28. * @Column(name="user_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  29. */
  30. private $userId;
  31. /**
  32. * @var integer
  33. *
  34. * @Column(name="relation_type", type="integer", precision=0, scale=0, nullable=false, unique=false)
  35. */
  36. private $relationType;
  37. /**
  38. * Get id
  39. *
  40. * @return integer
  41. */
  42. public function getId()
  43. {
  44. return $this->id;
  45. }
  46. /**
  47. * Set groupId
  48. *
  49. * @param integer $groupId
  50. * @return EntityGroupRelUser
  51. */
  52. public function setGroupId($groupId)
  53. {
  54. $this->groupId = $groupId;
  55. return $this;
  56. }
  57. /**
  58. * Get groupId
  59. *
  60. * @return integer
  61. */
  62. public function getGroupId()
  63. {
  64. return $this->groupId;
  65. }
  66. /**
  67. * Set userId
  68. *
  69. * @param integer $userId
  70. * @return EntityGroupRelUser
  71. */
  72. public function setUserId($userId)
  73. {
  74. $this->userId = $userId;
  75. return $this;
  76. }
  77. /**
  78. * Get userId
  79. *
  80. * @return integer
  81. */
  82. public function getUserId()
  83. {
  84. return $this->userId;
  85. }
  86. /**
  87. * Set relationType
  88. *
  89. * @param integer $relationType
  90. * @return EntityGroupRelUser
  91. */
  92. public function setRelationType($relationType)
  93. {
  94. $this->relationType = $relationType;
  95. return $this;
  96. }
  97. /**
  98. * Get relationType
  99. *
  100. * @return integer
  101. */
  102. public function getRelationType()
  103. {
  104. return $this->relationType;
  105. }
  106. }