fix pdf methoth not showing, add in ObjekteImDetail projekt_methode_id for relation (kick out raumart for relation)
This commit is contained in:
1 parent
d95452bc9d
commit
fe826c3bab
8 files changed
+203
-37
No files matched your search
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user