From 39d4f628e39d74eb151c531bcb64c6adca9fb5c1 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Tue, 13 Jul 2021 09:31:42 +0200 Subject: [PATCH] Prevent broken event state when build from db result The process will not call __construct, the object storages might not be initialized. Therefore initializeObject is now implemented which is calling the existing method to initialize object storages. --- Classes/Domain/Model/Event.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Classes/Domain/Model/Event.php b/Classes/Domain/Model/Event.php index 3afcebe..c348e8d 100644 --- a/Classes/Domain/Model/Event.php +++ b/Classes/Domain/Model/Event.php @@ -250,6 +250,11 @@ class Event extends AbstractEntity $this->dataProcessing = $dataProcessing; } + public function initializeObject() + { + $this->initStorageObjects(); + } + /** * @return void */