UsergroupRelUser.php 2.1 KB

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