QuestionFieldValues.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6. * QuestionFieldValues
  7. *
  8. * @ORM\Table(name="question_field_values")
  9. * @ORM\Entity
  10. * @Gedmo\Loggable
  11. */
  12. class QuestionFieldValues extends ExtraFieldValues
  13. {
  14. /**
  15. * @var integer
  16. *
  17. * @ORM\Column(name="question_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  18. */
  19. private $questionId;
  20. /**
  21. * @ORM\ManyToOne(targetEntity="CQuizQuestion")
  22. * @ORM\JoinColumn(name="question_id", referencedColumnName="iid")
  23. */
  24. //private $question;
  25. /**
  26. * @ORM\OneToOne(targetEntity="QuestionField")
  27. * @ORM\JoinColumn(name="field_id", referencedColumnName="id")
  28. */
  29. //private $field;
  30. /**
  31. * @var string
  32. * @Gedmo\Versioned
  33. *
  34. * @ORM\Column(name="field_value", type="text", precision=0, scale=0, nullable=true, unique=false)
  35. */
  36. private $fieldValue;
  37. /**
  38. * Set fieldValue
  39. *
  40. * @param string $fieldValue
  41. * @return ExtraFieldValues
  42. */
  43. public function setFieldValue($fieldValue)
  44. {
  45. $this->fieldValue = $fieldValue;
  46. return $this;
  47. }
  48. /**
  49. * Get fieldValue
  50. *
  51. * @return string
  52. */
  53. public function getFieldValue()
  54. {
  55. return $this->fieldValue;
  56. }
  57. /**
  58. * Set questionId
  59. *
  60. * @param integer $questionId
  61. * @return QuestionFieldValues
  62. */
  63. public function setQuestionId($questionId)
  64. {
  65. $this->questionId = $questionId;
  66. return $this;
  67. }
  68. /**
  69. * Get questionId
  70. *
  71. * @return integer
  72. */
  73. public function getQuestionId()
  74. {
  75. return $this->questionId;
  76. }
  77. }