public function __construct($entityId, Storage $storage, $entityMiscData = null) { parent::__construct($entityId, $storage, $entityMiscData); if (!empty($this->entityMiscData) && is_string($this->entityMiscData)) { $this->unserializedMiscData = unserialize($this->entityMiscData); } }