mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-24 17:16:11 +01:00
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:
parent
326378e2fc
commit
39d4f628e3
1 changed files with 5 additions and 0 deletions
|
@ -250,6 +250,11 @@ class Event extends AbstractEntity
|
|||
$this->dataProcessing = $dataProcessing;
|
||||
}
|
||||
|
||||
public function initializeObject()
|
||||
{
|
||||
$this->initStorageObjects();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue