action evaluation
This commit is contained in:
1 parent
d473bdc2b3
commit
9eb19cf8fd
13 files changed
+297
-132
No files matched your search
@@ -18,7 +18,7 @@ class Allgemeinflaechen extends Model
|
||||
parent::boot();
|
||||
|
||||
self::updated(function ($model) {
|
||||
Projekte::where('id', $model['projekte_id'])->update(['evaluation' => false]);
|
||||
Projekte::where('id', $model['projekte_id'])->update(['evaluation_gutachten' => false]);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,15 @@ class OrientierungZuAbschlaege extends Model
|
||||
'j',
|
||||
];
|
||||
|
||||
public static function boot()
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
self::updated(function ($model) {
|
||||
Projekte::where('id', $model['projekte_id'])->update(['evaluation_gutachten' => false]);
|
||||
});
|
||||
}
|
||||
|
||||
public function orientierung()
|
||||
{
|
||||
return $this->hasOne(Orientierung::class, 'id', 'orientierung_id');
|
||||
|
||||
@@ -14,6 +14,15 @@ class ProjektMethode extends Model
|
||||
'flaeche',
|
||||
];
|
||||
|
||||
public static function boot()
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
self::updated(function ($model) {
|
||||
Projekte::where('id', $model['projekte_id'])->update(['evaluation_gutachten' => false]);
|
||||
});
|
||||
}
|
||||
|
||||
public function methode()
|
||||
{
|
||||
return $this->hasOne(Methode::class, 'id', 'methode_id');
|
||||
|
||||
@@ -15,4 +15,13 @@ class Raeumealle extends Model
|
||||
'faktor',
|
||||
'flaeche',
|
||||
];
|
||||
|
||||
public static function boot()
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
self::updated(function ($model) {
|
||||
Projekte::where('id', $model['projekte_id'])->update(['evaluation_gutachten' => false]);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user