|
|
@ -90,8 +90,12 @@ class CQuizQuestion extends AbstractResource implements ResourceInterface |
|
|
|
* |
|
|
|
* |
|
|
|
* @ORM\ManyToMany(targetEntity="Chamilo\CourseBundle\Entity\CQuizQuestionCategory", inversedBy="questions") |
|
|
|
* @ORM\ManyToMany(targetEntity="Chamilo\CourseBundle\Entity\CQuizQuestionCategory", inversedBy="questions") |
|
|
|
* @ORM\JoinTable(name="c_quiz_question_rel_category", |
|
|
|
* @ORM\JoinTable(name="c_quiz_question_rel_category", |
|
|
|
* joinColumns={@ORM\JoinColumn(name="category_id", referencedColumnName="iid")}, |
|
|
|
* joinColumns={ |
|
|
|
* inverseJoinColumns={@ORM\JoinColumn(name="question_id", referencedColumnName="iid")} |
|
|
|
* @ORM\JoinColumn(name="category_id", referencedColumnName="iid") |
|
|
|
|
|
|
|
* }, |
|
|
|
|
|
|
|
* inverseJoinColumns={ |
|
|
|
|
|
|
|
* @ORM\JoinColumn(name="question_id", referencedColumnName="iid") |
|
|
|
|
|
|
|
* } |
|
|
|
* ) |
|
|
|
* ) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected $categories; |
|
|
|
protected $categories; |
|
|
@ -205,9 +209,6 @@ class CQuizQuestion extends AbstractResource implements ResourceInterface |
|
|
|
return $this->description; |
|
|
|
return $this->description; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Set ponderation. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function setPonderation(float $ponderation): self |
|
|
|
public function setPonderation(float $ponderation): self |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->ponderation = $ponderation; |
|
|
|
$this->ponderation = $ponderation; |
|
|
@ -225,9 +226,6 @@ class CQuizQuestion extends AbstractResource implements ResourceInterface |
|
|
|
return $this->ponderation; |
|
|
|
return $this->ponderation; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Set position. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function setPosition(int $position): self |
|
|
|
public function setPosition(int $position): self |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->position = $position; |
|
|
|
$this->position = $position; |
|
|
|