From b71e5448202524a785b3fe033692f148b7e7730e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Werner=20M=2E=20Krau=C3=9F?= Date: Wed, 24 May 2017 14:31:56 +0200 Subject: [PATCH] adding table names config --- code/model/Subsite.php | 2 ++ code/model/SubsiteDomain.php | 4 +++- code/pages/SubsitesVirtualPage.php | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/code/model/Subsite.php b/code/model/Subsite.php index 8f54fcb2..26746109 100644 --- a/code/model/Subsite.php +++ b/code/model/Subsite.php @@ -43,6 +43,8 @@ */ class Subsite extends DataObject { + private static $table_name = 'Subsite'; + /** * @var $use_session_subsiteid Boolean Set to TRUE when using the CMS and FALSE * when browsing the frontend of a website. diff --git a/code/model/SubsiteDomain.php b/code/model/SubsiteDomain.php index 6d908c20..0e71cbc1 100644 --- a/code/model/SubsiteDomain.php +++ b/code/model/SubsiteDomain.php @@ -17,7 +17,9 @@ */ class SubsiteDomain extends DataObject { - /** + private static $table_name = 'SubsiteDomain'; + + /** * * @var string */ diff --git a/code/pages/SubsitesVirtualPage.php b/code/pages/SubsitesVirtualPage.php index df22c321..5e7d43b9 100644 --- a/code/pages/SubsitesVirtualPage.php +++ b/code/pages/SubsitesVirtualPage.php @@ -20,7 +20,9 @@ class SubsitesVirtualPage extends VirtualPage { - private static $description = 'Displays the content of a page on another subsite'; + private static $table_name = 'SubsitesVirtualPage'; + + private static $description = 'Displays the content of a page on another subsite'; private static $db = array( 'CustomMetaTitle' => 'Varchar(255)',