We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b63872 commit b593f65Copy full SHA for b593f65
1 file changed
modules/tipi_intervento/src/Tipo.php
@@ -23,6 +23,8 @@
23
use Common\SimpleModelTrait;
24
use Illuminate\Database\Eloquent\Model;
25
use Modules\Anagrafiche\Anagrafica;
26
+use Modules\Preventivi\Preventivo;
27
+use Modules\Interventi\Intervento;
28
use Traits\RecordTrait;
29
30
class Tipo extends Model
@@ -80,6 +82,14 @@ public function setTempoStandardAttribute($value)
80
82
$this->attributes['tempo_standard'] = $result;
81
83
}
84
85
+ public function save(array $options = [])
86
+ {
87
+ parent::save($options);
88
+
89
+ $this->fixTecnici();
90
+ }
91
92
93
public function preventivi()
94
{
95
return $this->hasMany(Preventivo::class, 'idtipointervento');
0 commit comments