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.
This commit is contained in:
Daniel Siepmann 2021-07-13 09:31:42 +02:00
parent 326378e2fc
commit 39d4f628e3

View file

@ -250,6 +250,11 @@ class Event extends AbstractEntity
$this->dataProcessing = $dataProcessing; $this->dataProcessing = $dataProcessing;
} }
public function initializeObject()
{
$this->initStorageObjects();
}
/** /**
* @return void * @return void
*/ */