3 namespace BookStack\Entities\Models;
5 use BookStack\Entities\Tools\EntityHtmlDescription;
6 use Illuminate\Database\Eloquent\Relations\HasOne;
13 public function descriptionInfo(): EntityHtmlDescription
15 return new EntityHtmlDescription($this);
19 * @return HasOne<EntityContainerData, $this>
21 public function relatedData(): HasOne
23 return $this->hasOne(EntityContainerData::class, 'entity_id', 'id')
24 ->where('entity_type', '=', $this->getMorphClass());