ExtraFieldOptionRelFieldOption.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * ExtraFieldOptionRelFieldOption
  6. *
  7. * @ORM\Table(name="extra_field_option_rel_field_option", uniqueConstraints={@ORM\UniqueConstraint(name="idx", columns={"field_id", "role_id", "field_option_id", "related_field_option_id"})})
  8. * @ORM\Entity
  9. */
  10. class ExtraFieldOptionRelFieldOption
  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="field_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  24. */
  25. private $fieldId;
  26. /**
  27. * @var integer
  28. *
  29. * @ORM\Column(name="field_option_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  30. */
  31. private $fieldOptionId;
  32. /**
  33. * @var integer
  34. *
  35. * @ORM\Column(name="related_field_option_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  36. */
  37. private $relatedFieldOptionId;
  38. /**
  39. * @var integer
  40. *
  41. * @ORM\Column(name="role_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  42. */
  43. private $roleId;
  44. /**
  45. * Get id
  46. *
  47. * @return integer
  48. */
  49. public function getId()
  50. {
  51. return $this->id;
  52. }
  53. /**
  54. * Set fieldId
  55. *
  56. * @param integer $fieldId
  57. * @return EntityExtraFieldOptionRelFieldOption
  58. */
  59. public function setFieldId($fieldId)
  60. {
  61. $this->fieldId = $fieldId;
  62. return $this;
  63. }
  64. /**
  65. * Get fieldId
  66. *
  67. * @return integer
  68. */
  69. public function getFieldId()
  70. {
  71. return $this->fieldId;
  72. }
  73. /**
  74. * Set fieldOptionId
  75. *
  76. * @param integer $fieldOptionId
  77. * @return EntityExtraFieldOptionRelFieldOption
  78. */
  79. public function setFieldOptionId($fieldOptionId)
  80. {
  81. $this->fieldOptionId = $fieldOptionId;
  82. return $this;
  83. }
  84. /**
  85. * Get fieldOptionId
  86. *
  87. * @return integer
  88. */
  89. public function getFieldOptionId()
  90. {
  91. return $this->fieldOptionId;
  92. }
  93. /**
  94. * Set relatedFieldOptionId
  95. *
  96. * @param integer $relatedFieldOptionId
  97. * @return EntityExtraFieldOptionRelFieldOption
  98. */
  99. public function setRelatedFieldOptionId($relatedFieldOptionId)
  100. {
  101. $this->relatedFieldOptionId = $relatedFieldOptionId;
  102. return $this;
  103. }
  104. /**
  105. * Get relatedFieldOptionId
  106. *
  107. * @return integer
  108. */
  109. public function getRelatedFieldOptionId()
  110. {
  111. return $this->relatedFieldOptionId;
  112. }
  113. /**
  114. * Set roleId
  115. *
  116. * @param integer $roleId
  117. * @return EntityExtraFieldOptionRelRole
  118. */
  119. public function setRoleId($roleId)
  120. {
  121. $this->roleId = $roleId;
  122. return $this;
  123. }
  124. /**
  125. * Get roleId
  126. *
  127. * @return integer
  128. */
  129. public function getRoleId()
  130. {
  131. return $this->roleId;
  132. }
  133. }