Texte, Materialart und Präsentationsmedien bleiben am Medium, Modul, Programm und Lizenzartikel und werden von Verwaltung und Karten aus derselben Quelle gelesen, ohne Fassung oder Lizenz zu verändern. Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
781 B
PHP
34 lines
781 B
PHP
<?php
|
|
|
|
namespace App\Domain\Catalog;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class PresentationAssignment extends Model
|
|
{
|
|
protected $fillable = [
|
|
'subject_type',
|
|
'subject_id',
|
|
'content_element_id',
|
|
'presentation_role_id',
|
|
'position',
|
|
'source_version_id',
|
|
];
|
|
|
|
public function role(): BelongsTo
|
|
{
|
|
return $this->belongsTo(PresentationRole::class, 'presentation_role_id');
|
|
}
|
|
|
|
public function element(): BelongsTo
|
|
{
|
|
return $this->belongsTo(ContentElement::class, 'content_element_id');
|
|
}
|
|
|
|
public function sourceVersion(): BelongsTo
|
|
{
|
|
return $this->belongsTo(ContentElementVersion::class, 'source_version_id');
|
|
}
|
|
}
|