CQuizRelQuestion.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * CQuizRelQuestion
  6. *
  7. * @ORM\Table(name="c_quiz_rel_question")
  8. * @ORM\Entity
  9. */
  10. class CQuizRelQuestion
  11. {
  12. /**
  13. * @var integer
  14. *
  15. * @ORM\Column(name="iid", type="integer", precision=0, scale=0, nullable=false, unique=false)
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $iid;
  20. /**
  21. * @var integer
  22. *
  23. * @ORM\Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  24. * @ORM\Id
  25. * @ORM\GeneratedValue(strategy="NONE")
  26. */
  27. private $cId;
  28. /**
  29. * @var integer
  30. *
  31. * @ORM\Column(name="question_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  32. * @ORM\Id
  33. * @ORM\GeneratedValue(strategy="NONE")
  34. */
  35. private $questionId;
  36. /**
  37. * @var integer
  38. *
  39. * @ORM\Column(name="exercice_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  40. * @ORM\Id
  41. * @ORM\GeneratedValue(strategy="NONE")
  42. */
  43. private $exerciceId;
  44. /**
  45. * @var integer
  46. *
  47. * @ORM\Column(name="question_order", type="integer", precision=0, scale=0, nullable=false, unique=false)
  48. */
  49. private $questionOrder;
  50. /**
  51. * @ORM\ManyToOne(targetEntity="CQuizCategory")
  52. * @ORM\JoinColumn(name="c_id", referencedColumnName="id")
  53. */
  54. //private $category;
  55. /**
  56. * @ORM\ManyToOne(targetEntity="CQuizQuestion")
  57. * @ORM\JoinColumn(name="to_group_id", referencedColumnName="iid")
  58. */
  59. //private $question;
  60. /**
  61. * Set cId
  62. *
  63. * @param integer $cId
  64. * @return CQuizRelQuestion
  65. */
  66. public function setCId($cId)
  67. {
  68. $this->cId = $cId;
  69. return $this;
  70. }
  71. /**
  72. * Get cId
  73. *
  74. * @return integer
  75. */
  76. public function getCId()
  77. {
  78. return $this->cId;
  79. }
  80. /**
  81. * Set questionId
  82. *
  83. * @param integer $questionId
  84. * @return CQuizRelQuestion
  85. */
  86. public function setQuestionId($questionId)
  87. {
  88. $this->questionId = $questionId;
  89. return $this;
  90. }
  91. /**
  92. * Get questionId
  93. *
  94. * @return integer
  95. */
  96. public function getQuestionId()
  97. {
  98. return $this->questionId;
  99. }
  100. /**
  101. * Set exerciceId
  102. *
  103. * @param integer $exerciceId
  104. * @return CQuizRelQuestion
  105. */
  106. public function setExerciceId($exerciceId)
  107. {
  108. $this->exerciceId = $exerciceId;
  109. return $this;
  110. }
  111. /**
  112. * Get exerciceId
  113. *
  114. * @return integer
  115. */
  116. public function getExerciceId()
  117. {
  118. return $this->exerciceId;
  119. }
  120. /**
  121. * Set questionOrder
  122. *
  123. * @param integer $questionOrder
  124. * @return CQuizRelQuestion
  125. */
  126. public function setQuestionOrder($questionOrder)
  127. {
  128. $this->questionOrder = $questionOrder;
  129. return $this;
  130. }
  131. /**
  132. * Get questionOrder
  133. *
  134. * @return integer
  135. */
  136. public function getQuestionOrder()
  137. {
  138. return $this->questionOrder;
  139. }
  140. }