wip nutzwerte
This commit is contained in:
1 parent
53cdc0413e
commit
0ee8963fc6
15 files changed
+211
-168
No files matched your search
@@ -3,6 +3,7 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||
|
||||
class ProjektObjekte extends Model
|
||||
@@ -56,8 +57,8 @@ class ProjektObjekte extends Model
|
||||
return $this->hasOne(Orientierung::class, 'id', 'orientierung_id');
|
||||
}
|
||||
|
||||
public function projektobjekteimdetail(): HasOne
|
||||
public function projektobjekteimdetail(): HasMany
|
||||
{
|
||||
return $this->hasOne(ProjektObjekteImDetail::class, 'projekt_objekte_id', 'id');
|
||||
return $this->hasMany(ProjektObjekteImDetail::class, 'projekt_objekte_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user