From 2450f5c6b72f276d48118734b3b7f67a5eb34fa6 Mon Sep 17 00:00:00 2001 From: Dirk Koritnik Date: Thu, 18 Mar 2021 16:39:04 +0100 Subject: [PATCH] Switch to Storage Object for images --- Classes/Domain/Model/Event.php | 8 ++++---- Configuration/TCA/tx_events_domain_model_event.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Classes/Domain/Model/Event.php b/Classes/Domain/Model/Event.php index 4b9a2bd..a613211 100644 --- a/Classes/Domain/Model/Event.php +++ b/Classes/Domain/Model/Event.php @@ -174,7 +174,7 @@ class Event extends AbstractEntity /** * images * - * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference + * @var ObjectStorage * @Extbase\ORM\Cascade remove */ protected $images = null; @@ -578,15 +578,15 @@ class Event extends AbstractEntity } /** - * @return FileReference $images + * @return ObjectStorage $images */ - public function getImages() + public function getImages(): ObjectStorage { return $this->images; } /** - * @param FileReference $images + * @param ObjectStorage $images * @return void */ public function setImages(FileReference $images) diff --git a/Configuration/TCA/tx_events_domain_model_event.php b/Configuration/TCA/tx_events_domain_model_event.php index 0a4c0b9..a7de672 100644 --- a/Configuration/TCA/tx_events_domain_model_event.php +++ b/Configuration/TCA/tx_events_domain_model_event.php @@ -240,7 +240,7 @@ return [ 'config' => [ 'type' => 'text', 'enableRichtext' => true, - 'richtextConfiguration' => 'default', + 'richtextConfiguration' => 'Default', 'fieldControl' => [ 'fullScreenRichtext' => [ 'disabled' => false,