nutzwert in tabelle rauemall und orientierung

This commit is contained in:
salam committed 2025-10-22 19:16:10 +02:00
1 parent fe03a71735
commit 5583bed563
24 files changed
+726 -526

No files matched your search

+20 -1
View File
@@ -11,7 +11,9 @@ class OrientierungZuAbschlaege extends Model
'orientierung_id',
'nicht_in_orientierung',
'top_nummer',
'type',
'raumart',
'nutzwert',
'a',
'b',
'c',
@@ -29,10 +31,27 @@ class OrientierungZuAbschlaege extends Model
parent::boot();
self::updated(function ($model) {
Projekte::where('id', $model['projekte_id'])->update(['evaluation_gutachten' => false]);
Projekte::where('id', $model['projekte_id'])->update([
'evaluation_gutachten' => false,
'pdf_nutzwerte_status' => false,
'pdf_gutachten_status' => false,
'excel_nutzwerte_status' => false,
]);
});
}
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'nicht_in_orientierung' => 'boolean',
];
}
public function orientierung()
{
return $this->hasOne(Orientierung::class, 'id', 'orientierung_id');