From 8c9745e0e273e7c11dfd2b92ca73598931f35747 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 29 Jul 2024 12:07:23 +1200 Subject: [PATCH] ENH Don't use keyword self --- src/Extension/FluentVersionedExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Extension/FluentVersionedExtension.php b/src/Extension/FluentVersionedExtension.php index d985ba2c..f6474642 100644 --- a/src/Extension/FluentVersionedExtension.php +++ b/src/Extension/FluentVersionedExtension.php @@ -1023,7 +1023,7 @@ public function onAfterDuplicate($original, $doWrite, $relations): void $toID = $this->owner->ID; // Get localised table - $localisedTable = $this->getLocalisedTable($tableName) . self::SUFFIX_VERSIONS; + $localisedTable = $this->getLocalisedTable($tableName) . FluentVersionedExtension::SUFFIX_VERSIONS; // Remove existing translation versions from duplicated object DB::prepared_query("DELETE FROM \"$localisedTable\" WHERE \"RecordID\" = ?", [$toID]); @@ -1039,7 +1039,7 @@ public function onAfterDuplicate($original, $doWrite, $relations): void WHERE \"RecordID\" = ?", [$toID, $fromID]); // Also copy versions of base record - $versionsTableName = $tableName . self::SUFFIX_VERSIONS; + $versionsTableName = $tableName . FluentVersionedExtension::SUFFIX_VERSIONS; // Remove existing versions from duplicated object, created by onBeforeWrite DB::prepared_query("DELETE FROM \"$versionsTableName\" WHERE \"RecordID\" = ?", [$toID]);