CurriculumItemRelUser.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * CurriculumItemRelUser
  6. *
  7. * @ORM\Table(name="curriculum_item_rel_user")
  8. * @ORM\Entity(repositoryClass="Entity\Repository\CurriculumItemRelUserRepository")
  9. */
  10. class CurriculumItemRelUser
  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="item_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  24. */
  25. private $itemId;
  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. * @var boolean
  34. *
  35. * @ORM\Column(name="order_id", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  36. */
  37. private $orderId;
  38. /**
  39. * @var string
  40. *
  41. * @ORM\Column(name="description", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
  42. */
  43. private $description;
  44. /**
  45. * @ORM\ManyToOne(targetEntity="User", inversedBy="curriculumItems"))
  46. * @ORM\JoinColumn(name="user_id", referencedColumnName="user_id", nullable=true)
  47. */
  48. private $user;
  49. /**
  50. * @ORM\ManyToOne(targetEntity="CurriculumItem")
  51. * @ORM\JoinColumn(name="item_id", referencedColumnName="id", nullable=true)
  52. */
  53. private $item;
  54. /**
  55. * @return mixed
  56. */
  57. public function getUser()
  58. {
  59. return $this->user;
  60. }
  61. /**
  62. * @param User $user
  63. */
  64. public function setUser(User $user)
  65. {
  66. $this->user = $user;
  67. }
  68. /**
  69. * @return CurriculumItem
  70. */
  71. public function getItem()
  72. {
  73. return $this->item;
  74. }
  75. /**
  76. * @param CurriculumItem $item
  77. */
  78. public function setItem(CurriculumItem $item)
  79. {
  80. $this->item = $item;
  81. }
  82. /**
  83. * Get id
  84. *
  85. * @return integer
  86. */
  87. public function getId()
  88. {
  89. return $this->id;
  90. }
  91. /**
  92. * Set itemId
  93. *
  94. * @param integer $itemId
  95. * @return CurriculumItemRelUser
  96. */
  97. public function setItemId($itemId)
  98. {
  99. $this->itemId = $itemId;
  100. return $this;
  101. }
  102. /**
  103. * Get itemId
  104. *
  105. * @return integer
  106. */
  107. public function getItemId()
  108. {
  109. return $this->itemId;
  110. }
  111. /**
  112. * Set userId
  113. *
  114. * @param integer $userId
  115. * @return CurriculumItemRelUser
  116. */
  117. public function setUserId($userId)
  118. {
  119. $this->userId = $userId;
  120. return $this;
  121. }
  122. /**
  123. * Get userId
  124. *
  125. * @return integer
  126. */
  127. public function getUserId()
  128. {
  129. return $this->userId;
  130. }
  131. /**
  132. * Set orderId
  133. *
  134. * @param boolean $orderId
  135. * @return CurriculumItemRelUser
  136. */
  137. public function setOrderId($orderId)
  138. {
  139. $this->orderId = $orderId;
  140. return $this;
  141. }
  142. /**
  143. * Get orderId
  144. *
  145. * @return boolean
  146. */
  147. public function getOrderId()
  148. {
  149. return $this->orderId;
  150. }
  151. /**
  152. * Set description
  153. *
  154. * @param string $description
  155. * @return CurriculumItemRelUser
  156. */
  157. public function setDescription($description)
  158. {
  159. $this->description = $description;
  160. return $this;
  161. }
  162. /**
  163. * Get description
  164. *
  165. * @return string
  166. */
  167. public function getDescription()
  168. {
  169. return $this->description;
  170. }
  171. }