fix pdf methoth not showing, add in ObjekteImDetail projekt_methode_id for relation (kick out raumart for relation)

This commit is contained in:
salam committed 2026-05-19 08:09:19 +02:00
1 parent d95452bc9d
commit fe826c3bab
8 files changed
+203 -37

No files matched your search

+1 -6
View File
@@ -34,13 +34,8 @@ class ProjektObjekteImDetail extends Model
return $this->belongsTo(ProjektObjekte::class, 'projekt_objekte_id', 'id');
}
public function merkmale()
{
return $this->hasOne(ProjektMerkmale::class, 'raumart', 'raumart');
}
public function methode()
{
return $this->belongsTo(ProjektMethode::class, 'raumart', 'raumart');
return $this->belongsTo(ProjektMethode::class, 'projekt_methode_id', 'id');
}
}