From 556352f5a4877ab9a0ac34bb107863886c086bcc Mon Sep 17 00:00:00 2001 From: Thomas Scholze Date: Tue, 29 Mar 2022 19:52:16 +0200 Subject: [PATCH] [BUGFIX] add Extbase persistence configuration for TYPO3 version 10.4, fixes #94 --- Configuration/Extbase/Persistence/Classes.php | 22 +++++++++++++++++++ ext_typoscript_setup.txt | 1 + 2 files changed, 23 insertions(+) create mode 100644 Configuration/Extbase/Persistence/Classes.php diff --git a/Configuration/Extbase/Persistence/Classes.php b/Configuration/Extbase/Persistence/Classes.php new file mode 100644 index 0000000..59a6fb3 --- /dev/null +++ b/Configuration/Extbase/Persistence/Classes.php @@ -0,0 +1,22 @@ + [ + 'tableName' => 'tt_content', + 'properties' => [ + 'altText' => [ + 'fieldName' => 'altText' + ], + 'titleText' => [ + 'fieldName' => 'titleText' + ], + 'colPos' => [ + 'fieldName' => 'colPos' + ], + 'CType' => [ + 'fieldName' => 'CType' + ], + ], + ], +]; diff --git a/ext_typoscript_setup.txt b/ext_typoscript_setup.txt index 15135f2..0ae2ac3 100644 --- a/ext_typoscript_setup.txt +++ b/ext_typoscript_setup.txt @@ -2,6 +2,7 @@ # ============================================== # Persistence object mapping configuration # ============================================== +# TODO: remove this file if dropping support for TYPO3 less than version 10.4 config.tx_extbase.persistence.classes { Slub\SlubEvents\Domain\Model\TtContent {