*/ public function relatedData(): HasOne { return $this->hasOne(EntityContainerData::class, 'entity_id', 'id') ->where('entity_type', '=', $this->getMorphClass()); } }