From b5fb861cf2afd304df6af89b58c60bd515c9800e Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 17 Aug 2021 14:48:07 +0200 Subject: [PATCH] Internal: Exercise: Reinstate getIid() and setIid() in CQuizQuestion entity as Twig uses getIid() to access the iid property - refs BT#18452 --- .../CourseBundle/Entity/CQuizQuestion.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/Chamilo/CourseBundle/Entity/CQuizQuestion.php b/src/Chamilo/CourseBundle/Entity/CQuizQuestion.php index 444ea3da5d..b25b8967c2 100644 --- a/src/Chamilo/CourseBundle/Entity/CQuizQuestion.php +++ b/src/Chamilo/CourseBundle/Entity/CQuizQuestion.php @@ -336,6 +336,7 @@ class CQuizQuestion * @param int $iid * * @return CQuizQuestion + * @deprecated Use setIid() */ public function setId($iid) { @@ -348,12 +349,38 @@ class CQuizQuestion * Get id. * * @return int + * @deprecated Use getIid() */ public function getId() { return $this->iid; } + /** + * Set id. + * + * @param int $iid + * + * @return CQuizQuestion + */ + public function setIid($iid) + { + $this->iid = $iid; + + return $this; + } + + /** + * Get id. + * This method is also used by Twig to get the iid property. + * + * @return int + */ + public function getIid() + { + return $this->iid; + } + /** * Set cId. *