diff --git a/ProductComment.php b/ProductComment.php index f3fc56a..53cca30 100644 --- a/ProductComment.php +++ b/ProductComment.php @@ -438,6 +438,8 @@ public static function deleteUsefulness($id_product_comment) * Report comment * * @return bool + * + * @deprecated 4.0.0 - migrated to controllers/front/ReportComment and src/Entity/ProductCommentReport */ public static function reportComment($id_product_comment, $id_customer) { @@ -450,6 +452,8 @@ public static function reportComment($id_product_comment, $id_customer) * Comment already report * * @return bool + * + * @deprecated 4.0.0 - migrated to controllers/front/ReportComment and src/Entity/ProductCommentReport */ public static function isAlreadyReport($id_product_comment, $id_customer) { @@ -464,6 +468,8 @@ public static function isAlreadyReport($id_product_comment, $id_customer) * Set comment usefulness * * @return bool + * + * @deprecated 4.0.0 - migrated to controllers/front/UpdateCommentUsefulness and src/Entity/ProductCommentUsefulness */ public static function setCommentUsefulness($id_product_comment, $usefulness, $id_customer) { @@ -476,6 +482,8 @@ public static function setCommentUsefulness($id_product_comment, $usefulness, $i * Usefulness already set * * @return bool + * + * @deprecated 4.0.0 - migrated to controllers/front/UpdateCommentUsefulness and src/Entity/ProductCommentUsefulness */ public static function isAlreadyUsefulness($id_product_comment, $id_customer) { diff --git a/ProductCommentCriterion.php b/ProductCommentCriterion.php index 7e412aa..0a73991 100644 --- a/ProductCommentCriterion.php +++ b/ProductCommentCriterion.php @@ -47,6 +47,9 @@ class ProductCommentCriterion extends ObjectModel ], ]; + /** + * @deprecated 6.0.0 - migrated to src/Repository/ProductCommentCriterionRepository + */ public function delete() { if (!parent::delete()) { @@ -96,6 +99,8 @@ public function update($nullValues = false) * Link a Comment Criterion to a product * * @return bool succeed + * + * @deprecated 6.0.0 - migrated to src/Repository/ProductCommentCriterionRepository */ public function addProduct($id_product) { @@ -113,6 +118,8 @@ public function addProduct($id_product) * Link a Comment Criterion to a category * * @return bool succeed + * + * @deprecated 6.0.0 - migrated to src/Repository/ProductCommentCriterionRepository */ public function addCategory($id_category) { diff --git a/upgrade/install-6.0.3.php b/upgrade/install-6.0.3.php index cdb05fb..b32ad47 100644 --- a/upgrade/install-6.0.3.php +++ b/upgrade/install-6.0.3.php @@ -27,7 +27,7 @@ exit; } -function upgrade_module_6_0_1($object) +function upgrade_module_6_0_3($object) { return Db::getInstance()->execute('ALTER TABLE `' . _DB_PREFIX_ . 'product_comment` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci') && Db::getInstance()->execute('ALTER TABLE `' . _DB_PREFIX_ . 'product_comment_criterion` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci')